Skip to content

Commit

Permalink
fix some migrations (#191)
Browse files Browse the repository at this point in the history
* fix some migrations
  • Loading branch information
dinmukhamedm authored Nov 10, 2024
1 parent a8a3187 commit e966334
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions frontend/lib/db/migrations/0004_worthless_kitty_pryde.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ CREATE TABLE IF NOT EXISTS "datapoint_to_span" (
CONSTRAINT "datapoint_to_span_pkey" PRIMARY KEY("datapoint_id","span_id","project_id")
);
--> statement-breakpoint
ALTER TABLE "labeling_queue_items" DROP CONSTRAINT "labelling_queue_data_queue_id_fkey";
--> statement-breakpoint
ALTER TABLE "labels" ALTER COLUMN "value" SET NOT NULL;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "datapoint_to_span" ADD CONSTRAINT "datapoint_to_span_datapoint_id_fkey" FOREIGN KEY ("datapoint_id") REFERENCES "public"."dataset_datapoints"("id") ON DELETE cascade ON UPDATE cascade;
Expand Down
4 changes: 2 additions & 2 deletions frontend/lib/db/migrations/meta/0002_snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@
},
"indexes": {},
"foreignKeys": {
"labelling_queue_data_queue_id_fkey": {
"name": "labelling_queue_data_queue_id_fkey",
"labelling_queue_items_queue_id_fkey": {
"name": "labelling_queue_items_queue_id_fkey",
"tableFrom": "labeling_queue_items",
"tableTo": "labeling_queues",
"columnsFrom": [
Expand Down
4 changes: 2 additions & 2 deletions frontend/lib/db/migrations/meta/0003_snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@
},
"indexes": {},
"foreignKeys": {
"labelling_queue_data_queue_id_fkey": {
"name": "labelling_queue_data_queue_id_fkey",
"labelling_queue_items_queue_id_fkey": {
"name": "labelling_queue_items_queue_id_fkey",
"tableFrom": "labeling_queue_items",
"tableTo": "labeling_queues",
"columnsFrom": [
Expand Down

0 comments on commit e966334

Please sign in to comment.