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

pull/861/head
庄表伟 6 years ago committed by Nicolas Giard
parent 6b886b6e3f
commit c2fe9621b9

@ -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('')
})
}

Loading…
Cancel
Save