fixes for mySQL and MSSQL non default ports
This commit is contained in:
parent
122caf227c
commit
befb94aaa9
|
@ -17,6 +17,11 @@ const SCHEMA = {
|
||||||
type: FIELD_TYPES.STRING,
|
type: FIELD_TYPES.STRING,
|
||||||
default: "localhost",
|
default: "localhost",
|
||||||
},
|
},
|
||||||
|
port: {
|
||||||
|
type: FIELD_TYPES.NUMBER,
|
||||||
|
required: false,
|
||||||
|
default: 1433,
|
||||||
|
},
|
||||||
database: {
|
database: {
|
||||||
type: FIELD_TYPES.STRING,
|
type: FIELD_TYPES.STRING,
|
||||||
default: "root",
|
default: "root",
|
||||||
|
|
|
@ -1,25 +1,31 @@
|
||||||
const mysql = require("mysql")
|
const mysql = require("mysql")
|
||||||
|
const { FIELD_TYPES } = require("./Integration")
|
||||||
|
|
||||||
const SCHEMA = {
|
const SCHEMA = {
|
||||||
docs: "https://github.com/mysqljs/mysql",
|
docs: "https://github.com/mysqljs/mysql",
|
||||||
datasource: {
|
datasource: {
|
||||||
host: {
|
host: {
|
||||||
type: "string",
|
type: FIELD_TYPES.STRING,
|
||||||
default: "localhost",
|
default: "localhost",
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
port: {
|
||||||
|
type: FIELD_TYPES.NUMBER,
|
||||||
|
default: 1433,
|
||||||
|
required: false,
|
||||||
|
},
|
||||||
user: {
|
user: {
|
||||||
type: "string",
|
type: FIELD_TYPES.STRING,
|
||||||
default: "root",
|
default: "root",
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
password: {
|
password: {
|
||||||
type: "password",
|
type: FIELD_TYPES.PASSWORD,
|
||||||
default: "root",
|
default: "root",
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
type: "string",
|
type: FIELD_TYPES.STRING,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue