From c7f7bab98fa5c65221dcad8ae09a4627af2a24cb Mon Sep 17 00:00:00 2001 From: Le-King-Fu Date: Sat, 14 Feb 2026 17:23:36 +0000 Subject: [PATCH] fix: restore schema.sql to exact v0.2.4 bytes for migration checksum (v0.2.7) v0.2.6 still had comment lines in schema.sql that changed the SHA-384 checksum. sqlx requires byte-for-byte match with the originally applied migration SQL. schema.sql is now identical to the v0.2.4 original. Migrations 4 (is_inputable column) and 5 (import_config_templates table) in lib.rs handle adding these to existing databases. Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/database/schema.sql | 3 --- src-tauri/tauri.conf.json | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5e02ade..34eca41 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "simpl_result_scaffold", "private": true, - "version": "0.2.6", + "version": "0.2.7", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 228b50a..53aac93 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3770,7 +3770,7 @@ checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" [[package]] name = "simpl-result" -version = "0.2.5" +version = "0.2.7" dependencies = [ "encoding_rs", "serde", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 16c4703..d2864ef 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simpl-result" -version = "0.2.6" +version = "0.2.7" description = "Personal finance management app" authors = ["you"] edition = "2021" diff --git a/src-tauri/src/database/schema.sql b/src-tauri/src/database/schema.sql index 6c463c9..ebea4e0 100644 --- a/src-tauri/src/database/schema.sql +++ b/src-tauri/src/database/schema.sql @@ -38,7 +38,6 @@ CREATE TABLE IF NOT EXISTS categories ( created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (parent_id) REFERENCES categories(id) ON DELETE SET NULL ); --- NOTE: is_inputable column added by migration 4 CREATE TABLE IF NOT EXISTS suppliers ( id INTEGER PRIMARY KEY AUTOINCREMENT, @@ -137,8 +136,6 @@ CREATE TABLE IF NOT EXISTS budget_template_entries ( UNIQUE(template_id, category_id) ); --- NOTE: import_config_templates table created by migration 5 - CREATE TABLE IF NOT EXISTS user_preferences ( key TEXT PRIMARY KEY, value TEXT NOT NULL, diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 198230d..f9dd3d9 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Simpl Résultat", - "version": "0.2.6", + "version": "0.2.7", "identifier": "com.simpl.resultat", "build": { "beforeDevCommand": "npm run dev",