From 92e75d9aafc614e3ca62bf5d8e6a770a858bfeda Mon Sep 17 00:00:00 2001 From: Lefucjusz Date: Mon, 17 Jun 2024 15:00:05 +0200 Subject: [PATCH] [BH-1909] Commit settings database migration Commit changes that have been introduced to settings database to change alarm sounds filenames to absolute paths to those files. --- products/BellHybrid/services/db/databases/databases.json | 2 +- .../1b034c28_Change_tone_names_to_tone_paths => 2}/down.sql | 1 + .../1b034c28_Change_tone_names_to_tone_paths => 2}/up.sql | 1 + .../current/1b034c28_Change_tone_names_to_tone_paths/.meta | 6 ------ .../1b034c28_Change_tone_names_to_tone_paths/devel.sql | 6 ------ 5 files changed, 3 insertions(+), 13 deletions(-) rename products/BellHybrid/services/db/databases/migration/settings_bell/{current/1b034c28_Change_tone_names_to_tone_paths => 2}/down.sql (99%) rename products/BellHybrid/services/db/databases/migration/settings_bell/{current/1b034c28_Change_tone_names_to_tone_paths => 2}/up.sql (99%) delete mode 100644 products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/.meta delete mode 100644 products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/devel.sql diff --git a/products/BellHybrid/services/db/databases/databases.json b/products/BellHybrid/services/db/databases/databases.json index f51a0403e86cd7146bd01711fe7dd2fc73b5e74a..c22bc96e62239ff3d730c249d0d329131c4b873c 100644 --- a/products/BellHybrid/services/db/databases/databases.json +++ b/products/BellHybrid/services/db/databases/databases.json @@ -15,7 +15,7 @@ }, { "name": "settings_bell", - "version": "1" + "version": "2" }, { "name": "quotes", diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/down.sql b/products/BellHybrid/services/db/databases/migration/settings_bell/2/down.sql similarity index 99% rename from products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/down.sql rename to products/BellHybrid/services/db/databases/migration/settings_bell/2/down.sql index 736d5bf215ca593e38cd8e35bf0a717fa81050ba..2fa1857af65400731a6909341d5b447b5d7c5d63 100644 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/down.sql +++ b/products/BellHybrid/services/db/databases/migration/settings_bell/2/down.sql @@ -116,3 +116,4 @@ DELETE FROM settings_tab WHERE path = 'snooze_tone_path_default'; DELETE FROM settings_tab WHERE path = 'prewake_up_tone_path_default'; DELETE FROM settings_tab WHERE path = 'alarm_tone_path_default'; DELETE FROM settings_tab WHERE path = 'bedtime_tone_path_default'; + diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/up.sql b/products/BellHybrid/services/db/databases/migration/settings_bell/2/up.sql similarity index 99% rename from products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/up.sql rename to products/BellHybrid/services/db/databases/migration/settings_bell/2/up.sql index 00a192eaef65c70d9d51c0ee25b1886f6cdf8ec9..23ae1e3b88b4bb71221041b29a0bc839af08abe0 100644 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/up.sql +++ b/products/BellHybrid/services/db/databases/migration/settings_bell/2/up.sql @@ -117,3 +117,4 @@ INSERT OR IGNORE INTO settings_tab (path, value) VALUES ('prewake_up_tone_path_default', '/system/assets/audio/prewakeup/Joyful_Awakening.mp3'), ('alarm_tone_path_default', '/system/assets/audio/alarm/Morning_Dew.mp3'), ('bedtime_tone_path_default', '/system/assets/audio/evening_reminder/Evening_Horizon.mp3'); + diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/.meta b/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/.meta deleted file mode 100644 index 84ad2c2ce1cc9bb9250177f40fabc25714618a2a..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/.meta +++ /dev/null @@ -1,6 +0,0 @@ -{ - "id": "1b034c28-f8f4-4792-8f35-9ab376fec0de", - "date": "2024-03-06 15:07:49", - "message": "Change tone names to tone paths", - "parent": 0 -} \ No newline at end of file diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/devel.sql b/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/devel.sql deleted file mode 100644 index 85793d87b340d8d7a47809286e7ecd760bda6240..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/1b034c28_Change_tone_names_to_tone_paths/devel.sql +++ /dev/null @@ -1,6 +0,0 @@ --- Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved. --- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md - --- Message: Change tone names to tone paths --- Revision: 1b034c28-f8f4-4792-8f35-9ab376fec0de --- Create Date: 2024-03-06 15:07:49