Skip to content

Commit

Permalink
Merge branch '2852/mk/get-or-create-ip-grants' into 2852/mk/improve-i…
Browse files Browse the repository at this point in the history
…p-grant-lookups
  • Loading branch information
mkurapov committed Aug 23, 2024
2 parents 332cc08 + 8e49521 commit a150607
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 a150607

Please sign in to comment.