Skip to content

Commit e3c2f91

Browse files
Online foreign key support
1 parent 8509c7f commit e3c2f91

File tree

7 files changed

+387
-124
lines changed

7 files changed

+387
-124
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $ pg-schema-diff plan --dsn "postgres://postgres:postgres@localhost:5432/postgre
7575
* The use of postgres native operations for zero-downtime migrations wherever possible:
7676
* Concurrent index builds
7777
* Online index replacement: If some index is changed, the new version will be built before the old version is dropped, preventing a window where no index is backing queries
78-
* Online check constraint builds: Check constraints are added as `INVALID` before being validated, eliminating the need
78+
* Online constraint builds: Constraints (check, foreign key) are added as `INVALID` before being validated, eliminating the need
7979
for a long access-exclusive lock on the table
8080
* Online `NOT NULL` constraint creation using check constraints to eliminate the need for an access-exclusive lock on the table
8181
* Prioritized index builds: Building new indexes is always prioritized over deleting old indexes

internal/migration_acceptance_tests/backwards_compat_cases_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ var backCompatAcceptanceTestCases = []acceptanceTestCase{
8484
`,
8585
},
8686
expectedHazardTypes: []diff.MigrationHazardType{
87-
diff.MigrationHazardTypeAcquiresShareRowExclusiveLock,
8887
diff.MigrationHazardTypeDeletesData,
8988
},
9089

internal/migration_acceptance_tests/database_schema_source_cases_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ var databaseSchemaSourceTestCases = []acceptanceTestCase{
117117
`,
118118
},
119119
expectedHazardTypes: []diff.MigrationHazardType{
120-
diff.MigrationHazardTypeAcquiresShareRowExclusiveLock,
121120
diff.MigrationHazardTypeDeletesData,
122121
},
123122

0 commit comments

Comments
 (0)