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.

13 lines
334 B

  1. exports.up = knex => {
  2. return knex.schema
  3. .createTable('analytics', table => {
  4. table.string('key').notNullable().primary()
  5. table.boolean('isEnabled').notNullable().defaultTo(false)
  6. table.json('config').notNullable()
  7. })
  8. }
  9. exports.down = knex => {
  10. return knex.schema
  11. .dropTableIfExists('analytics')
  12. }