fix: sqlite assets hash - set default value (#835)

This commit is contained in:
庄表伟 2019-05-14 02:02:27 +08:00 committed by Nicolas Giard
parent 6b886b6e3f
commit c2fe9621b9

View File

@ -2,7 +2,7 @@ exports.up = knex => {
return knex.schema
.table('assets', table => {
table.dropColumn('basename')
table.string('hash').notNullable()
table.string('hash').notNullable().defaultTo('')
})
}
@ -10,6 +10,6 @@ exports.down = knex => {
return knex.schema
.table('assets', table => {
table.dropColumn('hash')
table.string('basename').notNullable()
table.string('basename').notNullable().defaultTo('')
})
}