Skip to content

Commit

Permalink
fix(core): fix missing migration error for existing bots (resolve #10…
Browse files Browse the repository at this point in the history
…25) (#1029)
  • Loading branch information
epaminond authored Oct 17, 2018
1 parent d9754c8 commit aa8fb30
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exports.up = knex =>
knex.raw(`
ALTER TABLE ghost_content DROP CONSTRAINT IF EXISTS ghost_content_folder_file_unique;
ALTER TABLE ghost_content ADD CONSTRAINT ghost_content_folder_file_unique UNIQUE (folder, file);
`)

exports.down = knex => knex.raw('ALTER TABLE ghost_content DROP CONSTRAINT IF EXISTS ghost_content_folder_file_unique;')

0 comments on commit aa8fb30

Please sign in to comment.