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 04fdd411
authored
Mar 29, 2014
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Use the info event for common loggings"
This reverts commit
85dfa296
.
1 parent
85dfa296
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
lib/dialects/mariadb/query.js
lib/dialects/mysql/query.js
lib/dialects/postgres/query.js
lib/dialects/sqlite/query.js
lib/migrator.js
lib/dialects/mariadb/query.js
View file @
04fdd41
...
...
@@ -19,7 +19,7 @@ module.exports = (function() {
Query
.
prototype
.
run
=
function
(
sql
)
{
this
.
sql
=
sql
this
.
sequelize
.
log
(
'
info'
,
'
Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
this
.
sequelize
.
log
(
'Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
var
resultSet
=
[],
errorDetected
=
false
,
...
...
lib/dialects/mysql/query.js
View file @
04fdd41
...
...
@@ -19,7 +19,7 @@ module.exports = (function() {
Query
.
prototype
.
run
=
function
(
sql
)
{
this
.
sql
=
sql
this
.
sequelize
.
log
(
'
info'
,
'
Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
this
.
sequelize
.
log
(
'Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
this
.
client
.
query
(
this
.
sql
,
function
(
err
,
results
,
fields
)
{
this
.
emit
(
'sql'
,
this
.
sql
)
...
...
lib/dialects/postgres/query.js
View file @
04fdd41
...
...
@@ -27,7 +27,7 @@ module.exports = (function() {
,
query
=
this
.
client
.
query
(
sql
)
,
rows
=
[]
this
.
sequelize
.
log
(
'
info'
,
'
Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
this
.
sequelize
.
log
(
'Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
query
.
on
(
'row'
,
function
(
row
)
{
rows
.
push
(
row
)
...
...
lib/dialects/sqlite/query.js
View file @
04fdd41
...
...
@@ -26,7 +26,7 @@ module.exports = (function() {
this
.
sql
=
sql
this
.
sequelize
.
log
(
'
info'
,
'
Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
this
.
sequelize
.
log
(
'Executing ('
+
this
.
options
.
uuid
+
'): '
+
this
.
sql
)
var
columnTypes
=
{}
this
.
database
.
serialize
(
function
()
{
...
...
lib/migrator.js
View file @
04fdd41
...
...
@@ -43,9 +43,9 @@ module.exports = (function() {
}
if
(
migrations
.
length
===
0
)
{
self
.
sequelize
.
log
(
'info'
,
"There are no pending migrations."
)
self
.
sequelize
.
log
(
"There are no pending migrations."
)
}
else
{
self
.
sequelize
.
log
(
'info'
,
"Running migrations..."
)
self
.
sequelize
.
log
(
"Running migrations..."
)
}
migrations
.
forEach
(
function
(
migration
)
{
...
...
@@ -53,7 +53,7 @@ module.exports = (function() {
chainer
.
add
(
migration
,
'execute'
,
[
options
],
{
before
:
function
(
migration
)
{
self
.
sequelize
.
log
(
'info'
,
migration
.
filename
)
self
.
sequelize
.
log
(
migration
.
filename
)
migrationTime
=
process
.
hrtime
()
},
...
...
@@ -61,7 +61,7 @@ module.exports = (function() {
migrationTime
=
process
.
hrtime
(
migrationTime
)
migrationTime
=
Math
.
round
(
(
migrationTime
[
0
]
*
1000
)
+
(
migrationTime
[
1
]
/
1000000
));
self
.
sequelize
.
log
(
'
info'
,
'
Completed in '
+
migrationTime
+
'ms'
)
self
.
sequelize
.
log
(
'Completed in '
+
migrationTime
+
'ms'
)
},
success
:
function
(
migration
,
callback
)
{
...
...
@@ -181,7 +181,7 @@ module.exports = (function() {
var
addMigration
=
function
(
filename
)
{
var
migration
=
new
Migration
(
self
,
filename
)
self
.
sequelize
.
log
(
'
info'
,
'
Adding migration script at '
+
filename
)
self
.
sequelize
.
log
(
'Adding migration script at '
+
filename
)
chainer
.
add
(
migration
,
'execute'
,
[{
method
:
'up'
}],
{
before
:
function
(
migration
)
{
...
...
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