From 3a0358ed9db8466da8880ae11b63403df37de06c Mon Sep 17 00:00:00 2001 From: Anthony Berg Date: Thu, 2 May 2024 15:20:51 +0100 Subject: [PATCH] fix(connector): prevent database table from being created on each launch --- .../io/anthonyberg/connector/shared/database/ActionResult.sq | 2 +- .../sqldelight/io/anthonyberg/connector/shared/database/Test.sq | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/ActionResult.sq b/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/ActionResult.sq index 5af5fa7..6451311 100644 --- a/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/ActionResult.sq +++ b/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/ActionResult.sq @@ -1,4 +1,4 @@ -CREATE TABLE ActionResult ( +CREATE TABLE IF NOT EXISTS ActionResult ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, testId INTEGER NOT NULL, actionId INTEGER NOT NULL, diff --git a/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/Test.sq b/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/Test.sq index 2bc6b6d..6b6128a 100644 --- a/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/Test.sq +++ b/connector/shared/src/commonMain/sqldelight/io/anthonyberg/connector/shared/database/Test.sq @@ -1,4 +1,4 @@ -CREATE TABLE Test ( +CREATE TABLE IF NOT EXISTS Test ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, procedureId INTEGER NOT NULL, startUTC TEXT NOT NULL,