~aleteoryx/muditaos

85bd21751e3cbfc24a68904fe55d1db36b0008cf — Maciej Gibowicz 10 months ago 39e84be
[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.
A products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta => products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/.meta +6 -0
@@ 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

A products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql => products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/down.sql +9 -0
@@ 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;

A products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql => products/BellHybrid/services/db/databases/migration/quotes/current/87d133bf_Add_a_new_table_for_custom_quotes/up.sql +14 -0
@@ 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)
);