You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
353 B

  1. exports.up = knex => {
  2. return knex.schema
  3. .table('assets', table => {
  4. table.dropColumn('basename')
  5. table.string('hash').notNullable().defaultTo('')
  6. })
  7. }
  8. exports.down = knex => {
  9. return knex.schema
  10. .table('assets', table => {
  11. table.dropColumn('hash')
  12. table.string('basename').notNullable().defaultTo('')
  13. })
  14. }