Skip to content

Commit

Permalink
Merge pull request #437 from ao-org/fix-migration-script
Browse files Browse the repository at this point in the history
fix migration script for epic account
  • Loading branch information
RecoX authored Nov 7, 2023
2 parents fe0fa81 + e7a8d49 commit cd98b70
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ScriptsDB/20231101-01- add epic support.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS "epic_id_mapping" (
"epic_id" varchar(64) NOT NULL,
"user_id" integer NOT NULL,
"last_login" integer NOT NULL,
CONSTRAINT "fk_epic_id_mapping" FOREIGN KEY("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE,
CREATE UNIQUE INDEX epic_id_mapping_idx ON data(epic_id, user_id);
CREATE TABLE IF NOT EXISTS epic_id_mapping (
epic_id varchar(64) NOT NULL,
user_id integer NOT NULL,
last_login integer NOT NULL,
CONSTRAINT fk_epic_id_mapping FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT unique_epic_user_id UNIQUE (epic_id, user_id)
);

0 comments on commit cd98b70

Please sign in to comment.