feat(documents): add yachtId/companyId to files and documents
This commit is contained in:
8
src/lib/db/migrations/0007_brainy_felicia_hardy.sql
Normal file
8
src/lib/db/migrations/0007_brainy_felicia_hardy.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE "documents" ADD COLUMN "yacht_id" text;--> statement-breakpoint
|
||||
ALTER TABLE "documents" ADD COLUMN "company_id" text;--> statement-breakpoint
|
||||
ALTER TABLE "files" ADD COLUMN "yacht_id" text;--> statement-breakpoint
|
||||
ALTER TABLE "files" ADD COLUMN "company_id" text;--> statement-breakpoint
|
||||
CREATE INDEX "idx_documents_yacht" ON "documents" USING btree ("yacht_id");--> statement-breakpoint
|
||||
CREATE INDEX "idx_documents_company" ON "documents" USING btree ("company_id");--> statement-breakpoint
|
||||
CREATE INDEX "idx_files_yacht" ON "files" USING btree ("yacht_id");--> statement-breakpoint
|
||||
CREATE INDEX "idx_files_company" ON "files" USING btree ("company_id");
|
||||
8609
src/lib/db/migrations/meta/0007_snapshot.json
Normal file
8609
src/lib/db/migrations/meta/0007_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -50,6 +50,13 @@
|
||||
"when": 1776959911400,
|
||||
"tag": "0006_great_pixie",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 7,
|
||||
"version": "7",
|
||||
"when": 1776959993173,
|
||||
"tag": "0007_brainy_felicia_hardy",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user