Skip to content

Commit

Permalink
Remove auth unique constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed Jul 30, 2024
1 parent 563bc71 commit b0de2e1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions api/src/data/migrations/029.drop_auth_index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as knex from "knex";

export async function up(knex: knex.Knex) {
return knex.schema.alterTable("users", (table) => {
table.dropChecks("unique_users_auth_subject")
});
}

export async function down(knex: knex.Knex) {
return knex.schema.alterTable("users", (table) => {
table.unique(["auth_subject"], {
indexName: "unique_users_auth_subject",
});
});
}

0 comments on commit b0de2e1

Please sign in to comment.