File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
persistent-postgresql/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ FKChildV1 sql=migration_fk_child
6767
6868-- Simulate creating a new FK field on an existing table
6969FKChildV2 sql=migration_fk_child
70- parentId FKParentId OnUpdateNoAction
70+ parentId FKParentId
7171
7272ExplicitPrimaryKey sql=explicit_primary_key
7373 Id Text
@@ -654,7 +654,7 @@ spec = describe "MigrationSpec" $ do
654654 Right alters ->
655655 map (snd . showAlterDb) alters
656656 `shouldBe` [ " ALTER TABLE \" migration_fk_child\" ADD COLUMN \" parent_id\" INT8 NOT NULL"
657- , " ALTER TABLE \" migration_fk_child\" ADD CONSTRAINT \" migration_fk_child_parent_id_fkey\" FOREIGN KEY(\" parent_id\" ) REFERENCES \" migration_fk_parent\" (\" id\" ) ON DELETE RESTRICT ON UPDATE NO ACTION "
657+ , " ALTER TABLE \" migration_fk_child\" ADD CONSTRAINT \" migration_fk_child_parent_id_fkey\" FOREIGN KEY(\" parent_id\" ) REFERENCES \" migration_fk_parent\" (\" id\" ) ON DELETE RESTRICT ON UPDATE RESTRICT "
658658 ]
659659
660660 it " Uses overrides for empty cascade action" $ runConnAssert $ do
@@ -684,5 +684,5 @@ spec = describe "MigrationSpec" $ do
684684 Right alters ->
685685 map (snd . showAlterDb) alters
686686 `shouldBe` [ " ALTER TABLE \" migration_fk_child\" ADD COLUMN \" parent_id\" INT8 NOT NULL"
687- , " ALTER TABLE \" migration_fk_child\" ADD CONSTRAINT \" migration_fk_child_parent_id_fkey\" FOREIGN KEY(\" parent_id\" ) REFERENCES \" migration_fk_parent\" (\" id\" ) ON DELETE CASCADE ON UPDATE NO ACTION "
687+ , " ALTER TABLE \" migration_fk_child\" ADD CONSTRAINT \" migration_fk_child_parent_id_fkey\" FOREIGN KEY(\" parent_id\" ) REFERENCES \" migration_fk_parent\" (\" id\" ) ON DELETE CASCADE ON UPDATE CASCADE "
688688 ]
You can’t perform that action at this time.
0 commit comments