-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from dfpc-coe/video-lease
Video Lease UI
- Loading branch information
Showing
127 changed files
with
7,979 additions
and
1,591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
CREATE TABLE IF NOT EXISTS "video_lease" ( | ||
"id" serial PRIMARY KEY NOT NULL, | ||
"created" timestamp with time zone DEFAULT Now() NOT NULL, | ||
"updated" timestamp with time zone DEFAULT Now() NOT NULL, | ||
"username" text NOT NULL, | ||
"expiration" timestamp with time zone DEFAULT Now() + INTERVAL '1 HOUR' NOT NULL, | ||
"path" text NOT NULL | ||
); | ||
--> statement-breakpoint | ||
/* | ||
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 = 'tasks' | ||
AND constraint_type = 'PRIMARY KEY'; | ||
2. Uncomment code below and paste pk name manually | ||
Hope to release this update as soon as possible | ||
*/ | ||
|
||
DO $$ BEGIN | ||
ALTER TABLE "video_lease" ADD CONSTRAINT "video_lease_username_profile_username_fk" FOREIGN KEY ("username") REFERENCES "public"."profile"("username") ON DELETE no action ON UPDATE no action; | ||
EXCEPTION | ||
WHEN duplicate_object THEN null; | ||
END $$; | ||
--> statement-breakpoint | ||
ALTER TABLE "tasks" ADD CONSTRAINT "tasks_prefix_unique" UNIQUE("prefix"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "video_lease" ADD COLUMN "name" text NOT NULL; |
Oops, something went wrong.