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 7e3e7407
authored
Nov 29, 2011
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migration methods are now getting migration as first argument
1 parent
60a43179
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
spec/assets/migrations/20111117063700-createPerson.js
spec/assets/migrations/20111123060700-addBirthdateToPerson.js
spec/assets/migrations/20111117063700-createPerson.js
View file @
7e3e740
module
.
exports
=
{
module
.
exports
=
{
up
:
function
(
Interface
,
DataTypes
)
{
up
:
function
(
migration
,
DataTypes
)
{
Interface
.
createTable
(
'Person'
,
{
migration
.
createTable
(
'Person'
,
{
name
:
DataTypes
.
STRING
name
:
DataTypes
.
STRING
})
})
},
},
down
:
function
(
Interface
)
{
down
:
function
(
migration
)
{
Interface
.
dropTable
(
'Person'
)
migration
.
dropTable
(
'Person'
)
}
}
}
}
spec/assets/migrations/20111123060700-addBirthdateToPerson.js
View file @
7e3e740
module
.
exports
=
{
module
.
exports
=
{
up
:
function
(
interface
,
DataTypes
)
{
up
:
function
(
migration
,
DataTypes
)
{
},
},
down
:
function
(
interface
,
DataTypes
)
{
down
:
function
(
migration
,
DataTypes
)
{
}
}
}
}
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