From ed2af5f23d5976d9ed1607ec511aa388df18ce4a Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Thu, 25 Aug 2022 10:29:44 -0400 Subject: [PATCH] clear lot comments table --- temp/legacy.importFromCSV.js | 3 ++- temp/legacy.importFromCSV.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/temp/legacy.importFromCSV.js b/temp/legacy.importFromCSV.js index 482c5100..f8b7962b 100644 --- a/temp/legacy.importFromCSV.js +++ b/temp/legacy.importFromCSV.js @@ -33,8 +33,9 @@ function purgeTables() { database.prepare("delete from LotOccupancyComments").run(); database.prepare("delete from LotOccupancyOccupants").run(); database.prepare("delete from LotOccupancies").run(); + database.prepare("delete from LotComments").run(); database.prepare("delete from Lots").run(); - database.prepare("delete from sqlite_sequence where name in ('Lots', 'LotOccupancies', 'LotOccupancyComments')").run(); + database.prepare("delete from sqlite_sequence where name in ('Lots', 'LotComments', 'LotOccupancies', 'LotOccupancyComments')").run(); database.close(); } function purgeConfigTables() { diff --git a/temp/legacy.importFromCSV.ts b/temp/legacy.importFromCSV.ts index 64335843..32beefbe 100644 --- a/temp/legacy.importFromCSV.ts +++ b/temp/legacy.importFromCSV.ts @@ -177,8 +177,9 @@ function purgeTables() { database.prepare("delete from LotOccupancyComments").run(); database.prepare("delete from LotOccupancyOccupants").run(); database.prepare("delete from LotOccupancies").run(); + database.prepare("delete from LotComments").run(); database.prepare("delete from Lots").run(); - database.prepare("delete from sqlite_sequence where name in ('Lots', 'LotOccupancies', 'LotOccupancyComments')").run(); + database.prepare("delete from sqlite_sequence where name in ('Lots', 'LotComments', 'LotOccupancies', 'LotOccupancyComments')").run(); database.close(); }