mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 17:37:27 +08:00
Add flyway database migration tool. Read diva news from database
This commit is contained in:
6141
src/main/resources/db/migration/mysql/V1__init_db.sql
Normal file
6141
src/main/resources/db/migration/mysql/V1__init_db.sql
Normal file
File diff suppressed because it is too large
Load Diff
24
src/main/resources/db/migration/mysql/V2__property_table.sql
Normal file
24
src/main/resources/db/migration/mysql/V2__property_table.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
--
|
||||
-- テーブルの構造 `property`
|
||||
--
|
||||
|
||||
CREATE TABLE `property`
|
||||
(
|
||||
`id` bigint(20) NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
`property_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`property_value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for table `property`
|
||||
--
|
||||
ALTER TABLE `property`
|
||||
ADD UNIQUE KEY `UK_ekbti34ksu6o2sfms9yumvp4o` (`property_key`);
|
||||
COMMIT;
|
||||
|
||||
INSERT INTO `property` (id, property_key, property_value)
|
||||
VALUES (1, 'diva_news', 'Server Running No other news');
|
||||
INSERT INTO `property` (id, property_key, property_value)
|
||||
VALUES (2, 'diva_warning', 'Network Service Running');
|
||||
9687
src/main/resources/db/migration/sqlite/V1__init_db.sql
Normal file
9687
src/main/resources/db/migration/sqlite/V1__init_db.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
-- Table: property
|
||||
CREATE TABLE property
|
||||
(
|
||||
id BIGINT NOT NULL,
|
||||
property_key VARCHAR(255) UNIQUE,
|
||||
property_value VARCHAR(255),
|
||||
PRIMARY KEY (
|
||||
id
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user