mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
Fixes test cases
This commit is contained in:
parent
7544eb1ba8
commit
b2e8526064
1 changed files with 10 additions and 0 deletions
|
@ -50,6 +50,12 @@ exports.up = function(knex) {
|
|||
.table('users', function(table) {
|
||||
table.string('timezone', 50).after('devices')
|
||||
})
|
||||
.table('providers', function(table) {
|
||||
table.renameColumn('name', 'type')
|
||||
})
|
||||
.table('providers', function(table) {
|
||||
table.string('name', 255)
|
||||
})
|
||||
}
|
||||
|
||||
exports.down = function(knex) {
|
||||
|
@ -73,4 +79,8 @@ exports.down = function(knex) {
|
|||
table.dropColumn('locale')
|
||||
table.dropColumn('campaign_id')
|
||||
})
|
||||
.table('providers', function(table) {
|
||||
table.dropColumn('name')
|
||||
table.renameColumn('type', 'name')
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue