Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit d9b3670c
authored
Oct 15, 2014
by
Joel Trost
Committed by
Matt Broadstone
Dec 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated mssql config to use 100 db's
1 parent
a228e2c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
.travis.yml
lib/dialects/mssql/sql-generator.js
test/config/config.js
.travis.yml
View file @
d9b3670
...
@@ -30,6 +30,7 @@ script:
...
@@ -30,6 +30,7 @@ script:
branches
:
branches
:
only
:
only
:
-
master
-
master
-
1.7.0
-
feature/ms-sql-server
-
feature/ms-sql-server
matrix
:
matrix
:
...
...
lib/dialects/mssql/sql-generator.js
View file @
d9b3670
...
@@ -639,8 +639,8 @@ module.exports = {
...
@@ -639,8 +639,8 @@ module.exports = {
var
qry
=
[
var
qry
=
[
"SELECT c.COLUMN_NAME AS 'Name', c.DATA_TYPE AS 'Type',"
,
"SELECT c.COLUMN_NAME AS 'Name', c.DATA_TYPE AS 'Type',"
,
"c.IS_NULLABLE as 'IsNull' , COLUMN_DEFAULT AS 'Default'"
,
"c.IS_NULLABLE as 'IsNull' , COLUMN_DEFAULT AS 'Default'"
,
"FROM
sequelizesandbox.
INFORMATION_SCHEMA.TABLES t "
,
"FROM INFORMATION_SCHEMA.TABLES t "
,
"INNER JOIN
SequelizeSandbox.
INFORMATION_SCHEMA.COLUMNS c ON t.TABLE_NAME = c.TABLE_NAME"
,
"INNER JOIN INFORMATION_SCHEMA.COLUMNS c ON t.TABLE_NAME = c.TABLE_NAME"
,
"where t.TABLE_NAME ="
,
"where t.TABLE_NAME ="
,
wrapSingleQuote
(
table
),
wrapSingleQuote
(
table
),
";"
";"
...
...
test/config/config.js
View file @
d9b3670
...
@@ -13,7 +13,7 @@ module.exports = {
...
@@ -13,7 +13,7 @@ module.exports = {
},
},
mssql
:
{
mssql
:
{
database
:
process
.
env
.
SEQ_MSSQL_DB
||
process
.
env
.
SEQ_DB
||
(
'sequelize_test_
1'
),
//
+ ~~(Math.random() * 100)),
database
:
process
.
env
.
SEQ_MSSQL_DB
||
process
.
env
.
SEQ_DB
||
(
'sequelize_test_
'
+
~~
(
Math
.
random
()
*
100
)),
username
:
process
.
env
.
SEQ_MSSQL_USER
||
process
.
env
.
SEQ_USER
||
"sequelize"
,
username
:
process
.
env
.
SEQ_MSSQL_USER
||
process
.
env
.
SEQ_USER
||
"sequelize"
,
password
:
process
.
env
.
SEQ_MSSQL_PW
||
process
.
env
.
SEQ_PW
||
"test"
,
password
:
process
.
env
.
SEQ_MSSQL_PW
||
process
.
env
.
SEQ_PW
||
"test"
,
host
:
process
.
env
.
SEQ_MSSQL_HOST
||
process
.
env
.
SEQ_HOST
||
"ec2-54-76-93-58.eu-west-1.compute.amazonaws.com"
,
host
:
process
.
env
.
SEQ_MSSQL_HOST
||
process
.
env
.
SEQ_HOST
||
"ec2-54-76-93-58.eu-west-1.compute.amazonaws.com"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment