otter-space-sdk/pkg/database/migrations/005_id_fixes.sql
SoXX d5f0d3ee8c
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 3m40s
Gitea Build Check / Build (push) Successful in 3m36s
fix(database): migration
- fix wrong id types
2024-10-15 15:20:30 +02:00

14 lines
327 B
SQL

-- +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);