1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

fixes for mySQL and MSSQL non default ports

This commit is contained in:
Martin McKeaveney 2021-02-03 08:20:21 +00:00
parent 122caf227c
commit befb94aaa9
2 changed files with 15 additions and 4 deletions

View file

@ -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",

View file

@ -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,
}, },
}, },