From 53a3856ae0b49199175dc959c3aaed91456dcd9c Mon Sep 17 00:00:00 2001 From: Akeem Allen Date: Mon, 30 Sep 2024 23:08:44 -0400 Subject: [PATCH 1/2] Small migration query for testing --- src-tauri/src/migrations/mod.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src-tauri/src/migrations/mod.rs b/src-tauri/src/migrations/mod.rs index 2cc2983..97ac379 100644 --- a/src-tauri/src/migrations/mod.rs +++ b/src-tauri/src/migrations/mod.rs @@ -1,6 +1,7 @@ use std::{collections::HashMap, fs::File, path::PathBuf}; use serde::{Deserialize, Serialize}; +use sqlx::Executor; use tauri::AppHandle; use crate::{database::get_sqlite_connection, logger}; @@ -68,6 +69,24 @@ pub async fn run_migrations(app_handle: AppHandle) -> Result<(), String> { continue; } }; + let result = match sqlx::query( + "INSERT INTO abilities (name, effect) VALUES ('migration-test-1', 'migration-test-1')", + ) + .execute(&conn) + .await + { + Ok(result) => result, + Err(err) => { + logger::write_log( + &wiki_path, + logger::LogLevel::MigrationError, + &format!("Failed to execute migration: {}", err), + ); + continue; + } + }; + + println!("Migration Result: {:?}", result); } Ok(()) } From d604b388a4351e4cf5729fe42e0d9722c810a668 Mon Sep 17 00:00:00 2001 From: Akeem Allen Date: Mon, 30 Sep 2024 23:09:52 -0400 Subject: [PATCH 2/2] Uping to 1.7.2 for testing --- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5715d70..fc7ace6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wikigen", - "version": "1.7.1", + "version": "1.7.2", "private": true, "scripts": { "dev": "vite dev", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 8dcfbb0..0543420 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -6023,7 +6023,7 @@ dependencies = [ [[package]] name = "wiki_gen" -version = "1.7.1" +version = "1.7.2" dependencies = [ "chrono", "futures", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ef0f12f..fd305ce 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wiki_gen" -version = "1.7.1" +version = "1.7.2" description = "A Desktop Application to generate wikis for Pokemon Rom Hacks" authors = ["Akeem Allen"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 464e6b0..60d69b5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "WikiGen", - "version": "1.7.1" + "version": "1.7.2" }, "tauri": { "allowlist": {