Skip to content

Commit

Permalink
changed v3 migration to ignore when already set
Browse files Browse the repository at this point in the history
  • Loading branch information
0PandaDEV committed Aug 5, 2024
1 parent 7d7d620 commit 20861f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/db/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ pub fn load_migrations() -> Vec<Migration> {
"#;

let migration_v3 = r#"
INSERT INTO settings (key, value) VALUES ('apiURL', 'https://pipedapi.wireway.ch');
INSERT INTO settings (key, value) VALUES ('volume', '50');
INSERT OR IGNORE INTO settings (key, value) VALUES ('apiURL', 'https://pipedapi.wireway.ch');
INSERT OR IGNORE INTO settings (key, value) VALUES ('volume', '50');
"#;

vec![
Expand Down

0 comments on commit 20861f9

Please sign in to comment.