Skip to content

Commit

Permalink
Merge pull request #308 from metaDAOproject/staging
Browse files Browse the repository at this point in the history
feat: removes takes constraint on order sig for old order book data
  • Loading branch information
R-K-H authored Oct 27, 2024
2 parents 3359786 + bc45a3a commit d45bde0
Show file tree
Hide file tree
Showing 11 changed files with 3,775 additions and 50 deletions.
18 changes: 18 additions & 0 deletions packages/database/drizzle/0008_stormy_spirit.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Unfortunately in current drizzle-kit version we can't automatically get name for primary key.
We are working on making it available!
Meanwhile you can:
1. Check pk name in your database, by running
SELECT constraint_name FROM information_schema.table_constraints
WHERE table_schema = 'public'
AND table_name = 'takes'
AND constraint_type = 'PRIMARY KEY';
2. Uncomment code below and paste pk name manually
Hope to release this update as soon as possible
*/

ALTER TABLE "takes" DROP CONSTRAINT "takes_pkey";--> statement-breakpoint
ALTER TABLE "takes" ALTER COLUMN "order_tx_sig" DROP NOT NULL;--> statement-breakpoint
ALTER TABLE "takes" ADD COLUMN "take_id" uuid DEFAULT gen_random_uuid() NOT NULL;
Loading

0 comments on commit d45bde0

Please sign in to comment.