Skip to content

Commit

Permalink
feat(api): Add the isVisible column to oidc-providers table
Browse files Browse the repository at this point in the history
  • Loading branch information
theotime2005 authored Feb 6, 2025
1 parent 1b17978 commit 1ffaed5
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const TABLE_NAME = 'oidc-providers';
const COLUMN_NAME = 'isVisible';

const up = async function (knex) {
await knex.schema.table(TABLE_NAME, function (table) {
table.boolean(COLUMN_NAME).defaultTo(true);
});
};

const down = async function (knex) {
await knex.schema.table(TABLE_NAME, function (table) {
table.dropColumn(COLUMN_NAME);
});
};

export { down, up };

0 comments on commit 1ffaed5

Please sign in to comment.