diff --git a/pkg/database/migrations/005_id_fixes.sql b/pkg/database/migrations/005_id_fixes.sql new file mode 100644 index 0000000..9184935 --- /dev/null +++ b/pkg/database/migrations/005_id_fixes.sql @@ -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);