From 85bd21751e3cbfc24a68904fe55d1db36b0008cf Mon Sep 17 00:00:00 2001 From: Maciej Gibowicz Date: Fri, 24 Jan 2025 08:17:34 +0100 Subject: [PATCH] [BH-2098] Add new table with custom quotes to the database A new table has been added to the quotes database for user-added quotes. --- .../.meta | 6 ++++++ .../down.sql | 9 +++++++++ .../up.sql | 14 ++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta create mode 100644 products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql create mode 100644 products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql 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 new file mode 100644 index 0000000000000000000000000000000000000000..9e0d422a7660574df761d5bd7aa8b0ea27187612 --- /dev/null +++ b/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta @@ -0,0 +1,6 @@ +{ + "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/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql b/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql new file mode 100644 index 0000000000000000000000000000000000000000..c5cd6c283fb9995acf2728346daa3c0b95402f0c --- /dev/null +++ b/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql @@ -0,0 +1,9 @@ +-- 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 a new table for custom quotes +-- Revision: 87d133bf-f98c-429d-9f15-6963fd72f7e1 +-- Create Date: 2025-01-23 15:32:56 + +-- 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/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql new file mode 100644 index 0000000000000000000000000000000000000000..6f3701838644e0121064a9ede3f60905cee4a685 --- /dev/null +++ b/products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql @@ -0,0 +1,14 @@ +-- 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 a new table for custom quotes +-- Revision: 87d133bf-f98c-429d-9f15-6963fd72f7e1 +-- Create Date: 2025-01-23 15:32:56 + +-- Insert SQL here +CREATE TABLE IF NOT EXISTS custom_quote_table ( + quote_id INTEGER NOT NULL, + quote TEXT NOT NULL, + author TEXT, + PRIMARY KEY (quote_id) +);