mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
Updates
* Adds 'enabled' column into 'users' table with database/migration.js file. * Ignore errors when adding new columns in database/migration.js. There's a better method by checking whether the columns already exist before adding them, but this will do for now.
This commit is contained in:
parent
c2b2f5b14b
commit
c5b1e26671
@ -6,7 +6,10 @@ migration.start = async () => {
|
|||||||
await db.schema.table('albums', table => {
|
await db.schema.table('albums', table => {
|
||||||
table.dateTime('editedAt')
|
table.dateTime('editedAt')
|
||||||
table.dateTime('zipGeneratedAt')
|
table.dateTime('zipGeneratedAt')
|
||||||
})
|
}).catch(() => {})
|
||||||
|
await db.schema.table('users', table => {
|
||||||
|
table.integer('enabled')
|
||||||
|
}).catch(() => {})
|
||||||
console.log('Migration finished! Now start lolisafe normally')
|
console.log('Migration finished! Now start lolisafe normally')
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user