Add flyway database migration tool. Read diva news from database

This commit is contained in:
samnyan
2020-01-17 01:03:14 +09:00
parent a9a9ae4bbc
commit 3d99839fef
15 changed files with 7229 additions and 9 deletions

File diff suppressed because it is too large Load Diff

View 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');

File diff suppressed because it is too large Load Diff

View File

@@ -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
)
);