Skip to content

Commit 1978930

Browse files
committed
Amends CreateTable, so if 'overwrite' is enabled, the table is dropped, then recreated.
1 parent c4e4f95 commit 1978930

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Umbraco.Core/Persistence/PetaPocoExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ public static void CreateTable(this Database db, bool overwrite, Type modelType)
221221
if (overwrite && tableExist)
222222
{
223223
db.DropTable(tableName);
224+
tableExist = false;
224225
}
225226

226227
if (tableExist == false)

0 commit comments

Comments
 (0)