Skip to content

Commit 147fb87

Browse files
Kuba KarpierzKuba Karpierz
authored andcommitted
update test
1 parent a11ccc2 commit 147fb87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

persistent-postgresql/test/MigrationSpec.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ FKChildV1 sql=migration_fk_child
6767

6868
-- Simulate creating a new FK field on an existing table
6969
FKChildV2 sql=migration_fk_child
70-
parentId FKParentId OnUpdateNoAction
70+
parentId FKParentId
7171

7272
ExplicitPrimaryKey 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
]

0 commit comments

Comments
 (0)