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
Copy file name to clipboardExpand all lines: src/Migrator.Tests/Providers/SQLite/SQLiteTransformationProvider_AddForeignKeyTests.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -19,21 +19,21 @@ public void AddForeignKey()
19
19
Provider.ExecuteNonQuery("INSERT INTO TestTwo (TestId) VALUES (1)");
20
20
21
21
// Act
22
-
Provider.AddForeignKey(name:"FK name is not supported by SQLite",childTable:"TestTwo",childColumn:"TestId",parentTable:"Test",parentColumn:"Id",constraint:ForeignKeyConstraintType.Cascade);
@@ -48,7 +48,7 @@ public void AddForeignKey_RenameParentColumWithForeignKeyAndData_ForeignKeyPoint
48
48
Provider.ExecuteNonQuery("INSERT INTO TestTwo (TestId) VALUES (1)");
49
49
50
50
// Act
51
-
Provider.AddForeignKey(name:"FK name is not supported by SQLite",childTable:"TestTwo",childColumn:"TestId",parentTable:"Test",parentColumn:"Id",constraint:ForeignKeyConstraintType.Cascade);
Copy file name to clipboardExpand all lines: src/Migrator.Tests/Providers/SQLite/SQLiteTransformationProvider_CheckForeignKeyIntegrityTests.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ public void CheckForeignKeyIntegrity_IntegrityViolated_ReturnsFalse()
16
16
AddTableWithPrimaryKey();
17
17
Provider.ExecuteNonQuery("INSERT INTO Test (Id, name) VALUES (1, 'my name')");
18
18
Provider.ExecuteNonQuery("INSERT INTO TestTwo (TestId) VALUES (44444)");
19
-
Provider.AddForeignKey(name:"FK name is not supported by SQLite",childTable:"TestTwo",childColumn:"TestId",parentTable:"Test",parentColumn:"Id",constraint:ForeignKeyConstraintType.Cascade);
@@ -32,7 +32,7 @@ public void CheckForeignKeyIntegrity_IntegrityOk_ReturnsTrue()
32
32
AddTableWithPrimaryKey();
33
33
Provider.ExecuteNonQuery("INSERT INTO Test (Id, name) VALUES (1, 'my name')");
34
34
Provider.ExecuteNonQuery("INSERT INTO TestTwo (TestId) VALUES (1)");
35
-
Provider.AddForeignKey(name:"FK name is not supported by SQLite",childTable:"TestTwo",childColumn:"TestId",parentTable:"Test",parentColumn:"Id",constraint:ForeignKeyConstraintType.Cascade);
Provider.AddForeignKey(name:"Not used in SQLite",childTable:childTestTableName2,childColumn:propertyChildTableName1,parentTable:parentTableName,parentColumn:propertyName2);
thrownewException($"Cannot extract all foreign keys out of the create table script in SQLite. Did you use a name as foreign key constraint for all constraints in table '{tableName}' in this or older migrations?");
0 commit comments