mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(database): 🚚 Rename "Attachment" to "Media"
This commit is contained in:
parent
bbd56b600d
commit
2f61cd8f0a
21 changed files with 2429 additions and 101 deletions
4
drizzle/migrations/0041_bright_doctor_spectrum.sql
Normal file
4
drizzle/migrations/0041_bright_doctor_spectrum.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE "Attachments" RENAME TO "Medias";--> statement-breakpoint
|
||||
ALTER TABLE "Medias" DROP CONSTRAINT "Attachments_noteId_Notes_id_fk";
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "Medias" ADD CONSTRAINT "Medias_noteId_Notes_id_fk" FOREIGN KEY ("noteId") REFERENCES "public"."Notes"("id") ON DELETE cascade ON UPDATE cascade;
|
||||
2323
drizzle/migrations/meta/0041_snapshot.json
Normal file
2323
drizzle/migrations/meta/0041_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -288,6 +288,13 @@
|
|||
"when": 1735776034097,
|
||||
"tag": "0040_good_nocturne",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 41,
|
||||
"version": "7",
|
||||
"when": 1737644734501,
|
||||
"tag": "0041_bright_doctor_spectrum",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue