fix: sqlite assets hash - set default value (#835)
This commit is contained in:
parent
6b886b6e3f
commit
c2fe9621b9
@ -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 => {
|
|||||||
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('')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user