fix: sqlite assets hash - set default value (#835)
This commit is contained in:
1 parent
6b886b6e3f
commit
c2fe9621b9
1 file changed
+2
-2
@@ -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('')
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user