Commit c2fe9621 authored by 庄表伟's avatar 庄表伟 Committed by Nicolas Giard

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

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