Fix Model Issues & wrong id types in Database migration #16
13
pkg/database/migrations/005_id_fixes.sql
Normal file
13
pkg/database/migrations/005_id_fixes.sql
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user