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 a9673fbf
authored
Jul 31, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(datatypes) Revert datatypes.warn back to console.warn
1 parent
401adaf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
lib/data-types.js
lib/data-types.js
View file @
a9673fb
...
...
@@ -5,10 +5,10 @@ var util = require('util')
,
_
=
require
(
'lodash'
)
,
Wkt
=
require
(
'wellknown'
)
,
sequelizeErrors
=
require
(
'./errors'
)
,
warnings
=
{}
,
Validator
=
require
(
'validator'
)
,
moment
=
require
(
'moment-timezone'
)
,
hstore
=
require
(
'./dialects/postgres/hstore'
)
,
deprecate
=
require
(
'depd'
)(
'DataTypes'
);
,
hstore
=
require
(
'./dialects/postgres/hstore'
);
/**
* A convenience class holding commonly used data types. The datatypes are used when defining a new model using `Sequelize.define`, like this:
...
...
@@ -53,7 +53,10 @@ ABSTRACT.prototype.toSql = function() {
return
this
.
key
;
};
ABSTRACT
.
warn
=
function
(
link
,
text
)
{
deprecate
(
text
+
'\n>> Check: '
+
link
);
if
(
!
warnings
[
text
])
{
warnings
[
text
]
=
true
;
console
.
warn
(
'>> WARNING:'
,
text
,
'\n>> Check:'
,
link
);
}
};
ABSTRACT
.
prototype
.
stringify
=
function
(
value
,
options
)
{
if
(
this
.
$stringify
)
{
...
...
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