Skip to content

Commit

Permalink
chore(backend): merge migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov committed Aug 23, 2024
1 parent b21d89e commit 8e49521
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/backend/migrations/20240820101148_drop_unique_grants.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
exports.up = function (knex) {
return knex.schema.alterTable('grants', (table) => {
table.dropUnique(['authServerId', 'accessType', 'accessActions'])
table.timestamp('deletedAt').nullable()
})
}
Expand All @@ -14,6 +15,7 @@ exports.up = function (knex) {
*/
exports.down = function (knex) {
return knex.schema.alterTable('grants', (table) => {
table.unique(['authServerId', 'accessType', 'accessActions'])
table.dropColumn('deletedAt')
})
}

0 comments on commit 8e49521

Please sign in to comment.