-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration fail with multiple create tables in one migration #29
Comments
Did you have others migrations? |
No, only one migration. 'use strict'
const Schema = use('Schema')
class CreateUsersTableSchema extends Schema {
up () {
this.create('users', function (table) {
table.increments('id')
table.string('email').unique().notNullable()
table.string('password').notNullable()
table.timestamp('activated_at').index()
table.timestamps()
})
}
// inverse order for drop!
down () {
this.drop('users')
}
}
module.exports = CreateUsersTableSchema
'use strict'
const Schema = use('Schema')
class CreateAccountsTableSchema extends Schema {
up () {
this.create('accounts', function (table) {
table.increments('id')
table.timestamps()
})
}
// inverse order for drop!
down () {
this.drop('accounts')
}
}
module.exports = CreateAccountsTableSchema |
@ntvsx193 Identified bug, will fix it. |
thetutlage
added a commit
that referenced
this issue
Jun 22, 2016
Fixed and will be part of 3.0 release |
thetutlage
added a commit
that referenced
this issue
Jul 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/database/migrations/1463581000000_init.js
Then run migration (used PostgreSQL)
Dependency in package.json:
The text was updated successfully, but these errors were encountered: