Skip to content

Commit 89f8f8d

Browse files
committed
setting.sql file added
1 parent c589a77 commit 89f8f8d

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

database/settings.sql

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CREATE TABLE `settings` (
2+
`id` int(11) NOT NULL,
3+
`group` varchar(255) NOT NULL,
4+
`key` varchar(255) NOT NULL,
5+
`value` text NOT NULL,
6+
`is_json` tinyint(4) NOT NULL DEFAULT 0
7+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
8+
9+
INSERT INTO `settings` (`id`, `group`, `key`, `value`, `is_json`) VALUES
10+
(1, 'site', 'title', 'CI Admin', 0),
11+
(2, 'site', 'footer_copyright', 'Copyright@2020', 0),
12+
(3, 'site', 'google_analytics', '', 0),
13+
(5, 'site', 'logo_white', '/logo/logo.png', 0),
14+
(6, 'site', 'logo_black', '/logo/logo-black.png', 0);
15+
16+
ALTER TABLE `settings` ADD PRIMARY KEY (`id`);
17+
ALTER TABLE `settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

0 commit comments

Comments
 (0)