From 2c32c1970cd8b1ea9ed9723d66030554759fbe8f Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 17 Oct 2024 23:26:15 +0200 Subject: [PATCH] Added migrating Holding.quantity data type --- .../src/commonMain/sqldelight/migrations/1.sqm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BankingPersistence/src/commonMain/sqldelight/migrations/1.sqm b/BankingPersistence/src/commonMain/sqldelight/migrations/1.sqm index 409212e..ca046a6 100644 --- a/BankingPersistence/src/commonMain/sqldelight/migrations/1.sqm +++ b/BankingPersistence/src/commonMain/sqldelight/migrations/1.sqm @@ -6,4 +6,9 @@ CREATE TABLE IF NOT EXISTS ImageSettings ( width INTEGER, -- not used right now, add it just in case frequency INTEGER -); \ No newline at end of file +); + + +ALTER TABLE Holding DROP COLUMN quantity; + +ALTER TABLE Holding ADD COLUMN quantity REAL; \ No newline at end of file