fix(database): migration

- fix wrong id types
This commit is contained in:
SoXX 2024-10-15 15:20:30 +02:00
parent 104c148eb8
commit 25e88072a1

View File

@ -0,0 +1,13 @@
-- +migrate Up
ALTER TABLE "PostReference"
ALTER COLUMN post_id TYPE CHAR(25),
ALTER COLUMN source_id TYPE CHAR(25);
ALTER TABLE post_tags
ALTER COLUMN post_id TYPE CHAR(25);
ALTER TABLE "UserFavorites"
ALTER COLUMN post_id TYPE CHAR(25);
ALTER TABLE "UserSource"
ALTER COLUMN source_id TYPE CHAR(25);