mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
feat(database): ✨ Add Reaction database class
This commit is contained in:
parent
e00182cf54
commit
f67fed12e0
6 changed files with 2635 additions and 11 deletions
6
drizzle/migrations/0038_friendly_supernaut.sql
Normal file
6
drizzle/migrations/0038_friendly_supernaut.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE "Reaction" ALTER COLUMN "emojiId" DROP NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "Reaction" ADD COLUMN "uri" text;--> statement-breakpoint
|
||||
ALTER TABLE "Reaction" ADD COLUMN "emoji_text" text;--> statement-breakpoint
|
||||
ALTER TABLE "Reaction" ADD COLUMN "created_at" timestamp(3) DEFAULT now() NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "Reaction" ADD COLUMN "update_at" timestamp(3) DEFAULT now() NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "Reaction" ADD CONSTRAINT "Reaction_uri_unique" UNIQUE("uri");
|
||||
2335
drizzle/migrations/meta/0038_snapshot.json
Normal file
2335
drizzle/migrations/meta/0038_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -267,6 +267,13 @@
|
|||
"when": 1734546300555,
|
||||
"tag": "0037_condemned_talisman",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 38,
|
||||
"version": "7",
|
||||
"when": 1734548407684,
|
||||
"tag": "0038_friendly_supernaut",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue