Unverified Commit 83928dee authored by yrammos's avatar yrammos Committed by GitHub
Browse files

Fix #58 ('duplicate column name' on fresh install). (#81)

parent 28f4c5d5
......@@ -3,7 +3,7 @@
module.exports = {
up: function(migration, DataTypes) {
return Promise.all([
migration.addColumn('users', 'api_token',
migration.changeColumn('users', 'api_token',
{
type: DataTypes.STRING
}
......@@ -13,7 +13,11 @@ module.exports = {
down: function(migration, DataTypes) {
return Promise.all([
migration.removeColumn('users', 'api_token')
migration.changeColumn('users', 'api_token',
{
type: Sequelize.STRING
}
)
])
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment