From 3583aed69abbb21cf02d2169e1f3884bf19bb93f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 12 Oct 2023 15:48:13 +0200 Subject: [PATCH] Improve comment. --- .../android/libraries/matrix/session/SessionData.sq | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libraries/session-storage/impl/src/main/sqldelight/io/element/android/libraries/matrix/session/SessionData.sq b/libraries/session-storage/impl/src/main/sqldelight/io/element/android/libraries/matrix/session/SessionData.sq index 09f2972bca..d6d16cb6e2 100644 --- a/libraries/session-storage/impl/src/main/sqldelight/io/element/android/libraries/matrix/session/SessionData.sq +++ b/libraries/session-storage/impl/src/main/sqldelight/io/element/android/libraries/matrix/session/SessionData.sq @@ -1,6 +1,12 @@ ------------------------------------- --- Current version of the DB: 4 -- ------------------------------------- +-------------------------------------------------------------------- +-- Current version of the DB is the highest value of filename +-- in the folder `sqldelight/databases`. +-- +-- When upgrading the schema, you have to create a file .sqm in the +-- `sqldelight/databases` folder and run the following task to +-- generate a .db file using the latest schema +-- > ./gradlew generateDebugSessionDatabaseSchema +-------------------------------------------------------------------- CREATE TABLE SessionData ( userId TEXT NOT NULL PRIMARY KEY,