Skip to content

Commit

Permalink
Merge pull request pepyatka#203 from davidmz/fix-migrations
Browse files Browse the repository at this point in the history
Fix typos in database migration files
  • Loading branch information
indeyets authored Mar 6, 2017
2 parents c184834 + 3b5cbe5 commit 3a8a8da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/20160730190718_ban-uniqueness.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function up(knex) {
}

export async function down(knex) {
await knex.schema.table('likes', (table) => {
await knex.schema.table('bans', (table) => {
table.dropUnique('', 'bans_post_id_user_id_unique_idx');
table.index(['user_id', 'banned_user_id'], 'bans_user_id_banned_id_idx', 'btree');
});
Expand Down
2 changes: 1 addition & 1 deletion migrations/20161215174952_posts_privacy_flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function down(knex) {
table.dropIndex('', 'posts_is_private_idx');
table.dropIndex('', 'posts_is_protected_idx');
})
.raw('alter table users drop constraint posts_is_protected_check')
.raw('alter table posts drop constraint posts_is_protected_check')
.raw('DROP TRIGGER trg_set_posts_privacy_on_user_update ON users')
.raw('DROP TRIGGER trg_set_post_privacy_on_insert_update ON posts')
.raw('DROP FUNCTION trgfun_set_post_privacy_on_insert_update()')
Expand Down

0 comments on commit 3a8a8da

Please sign in to comment.