From e1d2330172a90f748c0c4a19ab6ffcb21dfe06bb Mon Sep 17 00:00:00 2001 From: Lefucjusz Date: Fri, 8 Aug 2025 12:12:24 +0200 Subject: [PATCH] [BH-000] Commit database migrations for 2.10.0 Committed all the database migrations before 2.10.0 release. --- .../BellHybrid/services/db/databases/databases.json | 6 +++--- .../down.sql | 1 + .../up.sql | 1 + .../87d133bf_Add_a_new_table_for_custom_quotes/.meta | 6 ------ .../down.sql | 9 +++++++++ .../b6dd0dff_Add_quote_interval_setting => 5}/up.sql | 10 ++++++++++ .../current/91a948e7_Add_quote_group_setting/.meta | 6 ------ .../current/91a948e7_Add_quote_group_setting/down.sql | 10 ---------- .../current/91a948e7_Add_quote_group_setting/up.sql | 11 ----------- .../current/b6dd0dff_Add_quote_interval_setting/.meta | 6 ------ .../down.sql | 1 + .../up.sql | 1 + .../d1af203c_Add_fix_for_update_from_2_9_x/.meta | 6 ------ 13 files changed, 26 insertions(+), 48 deletions(-) rename products/BellHybrid/services/db/databases/migration/quotes/{current/87d133bf_Add_a_new_table_for_custom_quotes => 1}/down.sql (99%) rename products/BellHybrid/services/db/databases/migration/quotes/{current/87d133bf_Add_a_new_table_for_custom_quotes => 1}/up.sql (99%) delete mode 100644 products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta rename products/BellHybrid/services/db/databases/migration/settings_bell/{current/b6dd0dff_Add_quote_interval_setting => 5}/down.sql (63%) rename products/BellHybrid/services/db/databases/migration/settings_bell/{current/b6dd0dff_Add_quote_interval_setting => 5}/up.sql (62%) delete mode 100644 products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/.meta delete mode 100644 products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/down.sql delete mode 100644 products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/up.sql delete mode 100644 products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/.meta rename products/BellHybrid/services/db/databases/migration/whats_new/{current/d1af203c_Add_fix_for_update_from_2_9_x => 1}/down.sql (99%) rename products/BellHybrid/services/db/databases/migration/whats_new/{current/d1af203c_Add_fix_for_update_from_2_9_x => 1}/up.sql (99%) delete mode 100644 products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/.meta diff --git a/products/BellHybrid/services/db/databases/databases.json b/products/BellHybrid/services/db/databases/databases.json index 617f3c55b60615d73d26ddaa8c280745631faa35..7a715dc2e359581d5ce0565e6fa18445ded8a9bf 100644 --- a/products/BellHybrid/services/db/databases/databases.json +++ b/products/BellHybrid/services/db/databases/databases.json @@ -15,15 +15,15 @@ }, { "name": "settings_bell", - "version": "4" + "version": "5" }, { "name": "quotes", - "version": "0" + "version": "1" }, { "name": "whats_new", - "version": "0" + "version": "1" } ] } diff --git a/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql b/products/BellHybrid/services/db/databases/migration/quotes/1/down.sql similarity index 99% rename from products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql rename to products/BellHybrid/services/db/databases/migration/quotes/1/down.sql index c5cd6c283fb9995acf2728346daa3c0b95402f0c..6885d9d14dc62e61a25b66d8a5449e282b0a0c40 100644 --- a/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql +++ b/products/BellHybrid/services/db/databases/migration/quotes/1/down.sql @@ -7,3 +7,4 @@ -- Insert SQL here DROP TABLE custom_quote_table; + diff --git a/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql b/products/BellHybrid/services/db/databases/migration/quotes/1/up.sql similarity index 99% rename from products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql rename to products/BellHybrid/services/db/databases/migration/quotes/1/up.sql index 6f3701838644e0121064a9ede3f60905cee4a685..bd545b8b1d693e3fa240628463508b2b60bfc8f0 100644 --- a/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql +++ b/products/BellHybrid/services/db/databases/migration/quotes/1/up.sql @@ -12,3 +12,4 @@ CREATE TABLE IF NOT EXISTS custom_quote_table ( author TEXT, PRIMARY KEY (quote_id) ); + diff --git a/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta b/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta deleted file mode 100644 index 9e0d422a7660574df761d5bd7aa8b0ea27187612..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta +++ /dev/null @@ -1,6 +0,0 @@ -{ - "id": "87d133bf-f98c-429d-9f15-6963fd72f7e1", - "date": "2025-01-23 15:32:56", - "message": "Add a new table for custom quotes", - "parent": 0 -} \ No newline at end of file diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/down.sql b/products/BellHybrid/services/db/databases/migration/settings_bell/5/down.sql similarity index 63% rename from products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/down.sql rename to products/BellHybrid/services/db/databases/migration/settings_bell/5/down.sql index 2ed83274c124b4b5598640f49f49faf85bc508e7..e79cab024f873230814763d00326f8325aac0388 100644 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/down.sql +++ b/products/BellHybrid/services/db/databases/migration/settings_bell/5/down.sql @@ -8,3 +8,12 @@ -- Insert SQL here DELETE FROM settings_tab WHERE path = 'quotes_interval'; + +-- Message: Add quote group setting +-- Revision: 91a948e7-4cff-4492-b25c-e219cfb4e8de +-- Create Date: 2025-01-27 08:55:40 + +-- Insert SQL here + +DELETE FROM settings_tab WHERE path = 'quotes_group'; + diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/up.sql b/products/BellHybrid/services/db/databases/migration/settings_bell/5/up.sql similarity index 62% rename from products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/up.sql rename to products/BellHybrid/services/db/databases/migration/settings_bell/5/up.sql index 7df4867b6d243135a9292a96f86ae766bcc69a78..d637d3e09971027cc6cc22bc161dcf467d6f1280 100644 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/up.sql +++ b/products/BellHybrid/services/db/databases/migration/settings_bell/5/up.sql @@ -1,6 +1,15 @@ -- Copyright (c) 2017-2025, Mudita Sp. z.o.o. All rights reserved. -- For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md +-- Message: Add quote group setting +-- Revision: 91a948e7-4cff-4492-b25c-e219cfb4e8de +-- Create Date: 2025-01-27 08:55:40 + +-- Insert SQL here + +INSERT OR IGNORE INTO settings_tab (path, value) VALUES + ('quotes_group', 'Predefined'); + -- Message: Add quote interval setting -- Revision: b6dd0dff-d717-4bf7-97e8-cc3e6359d9ff -- Create Date: 2025-01-30 13:47:07 @@ -9,3 +18,4 @@ INSERT OR IGNORE INTO settings_tab (path, value) VALUES ('quotes_interval', 'AtMidnight'); + diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/.meta b/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/.meta deleted file mode 100644 index a21fa27be2aebe4b89b71c0e06f3e753788f519e..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/.meta +++ /dev/null @@ -1,6 +0,0 @@ -{ - "id": "91a948e7-4cff-4492-b25c-e219cfb4e8de", - "date": "2025-01-27 08:55:40", - "message": "Add quote group setting", - "parent": 0 -} \ No newline at end of file diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/down.sql b/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/down.sql deleted file mode 100644 index ecef39d0b5ec476ef13c8e43a42baf7f961e2754..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/down.sql +++ /dev/null @@ -1,10 +0,0 @@ --- Copyright (c) 2017-2025, Mudita Sp. z.o.o. All rights reserved. --- For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md - --- Message: Add quote group setting --- Revision: 91a948e7-4cff-4492-b25c-e219cfb4e8de --- Create Date: 2025-01-27 08:55:40 - --- Insert SQL here - -DELETE FROM settings_tab WHERE path = 'quotes_group'; diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/up.sql b/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/up.sql deleted file mode 100644 index 0a9cd5952e0f0bd293804dc505edc8dbfdcdb163..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/91a948e7_Add_quote_group_setting/up.sql +++ /dev/null @@ -1,11 +0,0 @@ --- Copyright (c) 2017-2025, Mudita Sp. z.o.o. All rights reserved. --- For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md - --- Message: Add quote group setting --- Revision: 91a948e7-4cff-4492-b25c-e219cfb4e8de --- Create Date: 2025-01-27 08:55:40 - --- Insert SQL here - -INSERT OR IGNORE INTO settings_tab (path, value) VALUES - ('quotes_group', 'Predefined'); diff --git a/products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/.meta b/products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/.meta deleted file mode 100644 index 796ce94a1d21b2de81a5012caba91eb5238aea3d..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/settings_bell/current/b6dd0dff_Add_quote_interval_setting/.meta +++ /dev/null @@ -1,6 +0,0 @@ -{ - "id": "b6dd0dff-d717-4bf7-97e8-cc3e6359d9ff", - "date": "2025-01-30 13:47:07", - "message": "Add quote interval setting", - "parent": "91a948e7-4cff-4492-b25c-e219cfb4e8de" -} \ No newline at end of file diff --git a/products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/down.sql b/products/BellHybrid/services/db/databases/migration/whats_new/1/down.sql similarity index 99% rename from products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/down.sql rename to products/BellHybrid/services/db/databases/migration/whats_new/1/down.sql index 62fe8fe4fe6b92925c77812c4c71dedbb5218d3a..1acecfdfcf4febceb1aa00a046f2907e1b9a1273 100644 --- a/products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/down.sql +++ b/products/BellHybrid/services/db/databases/migration/whats_new/1/down.sql @@ -8,3 +8,4 @@ -- Insert SQL here DELETE FROM whats_new WHERE Major = 2 AND Minor = 10 AND Patch = 0 AND English_title = 'Custom quotations'; + diff --git a/products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/up.sql b/products/BellHybrid/services/db/databases/migration/whats_new/1/up.sql similarity index 99% rename from products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/up.sql rename to products/BellHybrid/services/db/databases/migration/whats_new/1/up.sql index 3c91db2bbc53d730531561536ca2e235cea24304..b246d5c8a6a9f7d437026e31abcd277f7ac81fa5 100644 --- a/products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/up.sql +++ b/products/BellHybrid/services/db/databases/migration/whats_new/1/up.sql @@ -9,3 +9,4 @@ INSERT OR REPLACE INTO whats_new (Major, Minor, Patch, English_title, Deutsch_title, Español_title, Polski_title, Français_title, Icon, English_desc, Deutsch_desc, Español_desc, Polski_desc, Français_desc) VALUES (2, 10, 0, 'Custom quotations', 'Eigene Zitate', 'Citas propias', 'Własne cytaty', 'Citations persos', 'whatsnew_quote_W_M', 'You can now add your own quotations using Mudita Center.', 'Füge Zitate mit Mudita Center hinzu.', 'Ahora puedes añadir tus propias citas usando Mudita Center.', 'Możesz teraz dodawać własne cytaty za pomocą Mudita Center.', 'Ajoutez vos citations via Mudita Center.'); + diff --git a/products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/.meta b/products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/.meta deleted file mode 100644 index f454853578587444144a7540e94c6d3777cd18b6..0000000000000000000000000000000000000000 --- a/products/BellHybrid/services/db/databases/migration/whats_new/current/d1af203c_Add_fix_for_update_from_2_9_x/.meta +++ /dev/null @@ -1,6 +0,0 @@ -{ - "id": "d1af203c-2982-4986-b680-fc7465019c4a", - "date": "2025-08-07 17:30:39", - "message": "Add fix for update from 2 9 x", - "parent": 0 -} \ No newline at end of file