Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 80129a1

Browse files
committed
Fix PostgreSQL tests on CI
1 parent f27c05d commit 80129a1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ServiceStack.OrmLite.PostgreSQL.Tests/ForeignKeyAttributeTests.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ public void Setup()
1414
{
1515
using (var dbConn = OpenDbConnection())
1616
{
17+
dbConn.DropTable<TypeWithOnDeleteAndUpdateCascade>();
18+
dbConn.DropTable<TypeWithOnDeleteSetNull>();
19+
dbConn.DropTable<TypeWithOnDeleteSetDefault>();
20+
dbConn.DropTable<TypeWithOnDeleteRestrict>();
21+
dbConn.DropTable<TypeWithOnDeleteNoAction>();
22+
dbConn.DropTable<TypeWithOnDeleteCascade>();
23+
dbConn.DropTable<TypeWithSimpleForeignKey>();
24+
dbConn.DropTable<ReferencedType>();
25+
1726
dbConn.CreateTable<ReferencedType>(true);
1827
}
1928
}
@@ -102,7 +111,7 @@ public void CanCreateForeignWithOnDeleteSetNull()
102111
}
103112

104113
[TestFixtureTearDown]
105-
public void TearDwon()
114+
public void TearDown()
106115
{
107116
using (var dbConn = OpenDbConnection())
108117
{

0 commit comments

Comments
 (0)