diff options
| author | joonhoekim <26rote@gmail.com> | 2025-03-25 15:55:45 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-03-25 15:55:45 +0900 |
| commit | 1a2241c40e10193c5ff7008a7b7b36cc1d855d96 (patch) | |
| tree | 8a5587f10ca55b162d7e3254cb088b323a34c41b /db/migrations/0004_cheerful_stark_industries.sql | |
initial commit
Diffstat (limited to 'db/migrations/0004_cheerful_stark_industries.sql')
| -rw-r--r-- | db/migrations/0004_cheerful_stark_industries.sql | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrations/0004_cheerful_stark_industries.sql b/db/migrations/0004_cheerful_stark_industries.sql new file mode 100644 index 00000000..5f8648e9 --- /dev/null +++ b/db/migrations/0004_cheerful_stark_industries.sql @@ -0,0 +1,2 @@ +ALTER TABLE "roles" ADD COLUMN "company_id" integer;--> statement-breakpoint +ALTER TABLE "roles" ADD CONSTRAINT "roles_company_id_companies_id_fk" FOREIGN KEY ("company_id") REFERENCES "public"."companies"("id") ON DELETE cascade ON UPDATE no action;
\ No newline at end of file |
