You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the database fields in pek-v3 have inconsistent data types {local(int) -> foreign(bigint)}.
Proposed solution
This .sql migration fixes the data types of the fields to be consistent with the foreign key fields.
-- auto generated with prisma ORM-- DropForeignKeyALTERTABLE"point_detail_comments" DROP CONSTRAINT"fk_rails_fd72f0d605";
-- DropForeignKeyALTERTABLE"point_details" DROP CONSTRAINT"fk_rails_6ef8df1bae";
-- DropForeignKeyALTERTABLE"principles" DROP CONSTRAINT"fk_rails_84e8865fd0";
-- DropForeignKeyALTERTABLE"svie_post_requests" DROP CONSTRAINT"fk_rails_a0009aa5e4";
-- DropForeignKeyALTERTABLE"view_settings" DROP CONSTRAINT"fk_rails_2450b9d422";
-- AlterTableALTERTABLE"point_detail_comments" ALTER COLUMN "user_id"SET DATA TYPE BIGINT;
-- AlterTableALTERTABLE"point_details" ALTER COLUMN "point_request_id"SET DATA TYPE BIGINT;
-- AlterTableALTERTABLE"principles" ALTER COLUMN "evaluation_id"SET DATA TYPE BIGINT;
-- AlterTableALTERTABLE"svie_post_requests" ALTER COLUMN "user_id"SET DATA TYPE BIGINT;
-- AlterTableALTERTABLE"view_settings" ALTER COLUMN "user_id"SET DATA TYPE BIGINT;
-- AddForeignKeyALTERTABLE"point_detail_comments" ADD CONSTRAINT"fk_rails_fd72f0d605"FOREIGN KEY ("user_id") REFERENCES"users"("id") ON DELETE NO ACTION ONUPDATE NO ACTION;
-- AddForeignKeyALTERTABLE"point_details" ADD CONSTRAINT"fk_rails_6ef8df1bae"FOREIGN KEY ("point_request_id") REFERENCES"point_requests"("id") ON DELETE NO ACTION ONUPDATE NO ACTION;
-- AddForeignKeyALTERTABLE"principles" ADD CONSTRAINT"fk_rails_84e8865fd0"FOREIGN KEY ("evaluation_id") REFERENCES"evaluations"("id") ON DELETE NO ACTION ONUPDATE NO ACTION;
-- AddForeignKeyALTERTABLE"svie_post_requests" ADD CONSTRAINT"fk_rails_a0009aa5e4"FOREIGN KEY ("user_id") REFERENCES"users"("id") ON DELETE NO ACTION ONUPDATE NO ACTION;
-- AddForeignKeyALTERTABLE"view_settings" ADD CONSTRAINT"fk_rails_2450b9d422"FOREIGN KEY ("user_id") REFERENCES"users"("id") ON DELETE NO ACTION ONUPDATE NO ACTION;
The text was updated successfully, but these errors were encountered:
Problem
Some of the database fields in pek-v3 have inconsistent data types
{local(int) -> foreign(bigint)}
.Proposed solution
This .sql migration fixes the data types of the fields to be consistent with the foreign key fields.
The text was updated successfully, but these errors were encountered: