Updated default tables to reflect changes made in #533

This commit is contained in:
Tobias Reich 2016-06-11 17:12:42 +02:00
parent 2bcccc41fa
commit 5c4f3413b1
4 changed files with 14 additions and 12 deletions

View File

@ -2,7 +2,7 @@
# ------------------------------------------------------------ # ------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `?` ( CREATE TABLE IF NOT EXISTS `?` (
`id` bigint(14) NOT NULL, `id` bigint(14) unsigned NOT NULL,
`title` varchar(100) NOT NULL DEFAULT '', `title` varchar(100) NOT NULL DEFAULT '',
`description` varchar(1000) DEFAULT '', `description` varchar(1000) DEFAULT '',
`sysstamp` int(11) NOT NULL, `sysstamp` int(11) NOT NULL,
@ -11,4 +11,4 @@ CREATE TABLE IF NOT EXISTS `?` (
`downloadable` tinyint(1) NOT NULL DEFAULT '0', `downloadable` tinyint(1) NOT NULL DEFAULT '0',
`password` varchar(100) DEFAULT NULL, `password` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@ -7,6 +7,6 @@ CREATE TABLE IF NOT EXISTS `?` (
`type` varchar(11) NOT NULL, `type` varchar(11) NOT NULL,
`function` varchar(100) NOT NULL, `function` varchar(100) NOT NULL,
`line` int(11) NOT NULL, `line` int(11) NOT NULL,
`text` TEXT, `text` text,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@ -2,8 +2,8 @@
# ------------------------------------------------------------ # ------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `?` ( CREATE TABLE IF NOT EXISTS `?` (
`id` bigint(14) NOT NULL, `id` bigint(14) unsigned NOT NULL,
`title` varchar(100) NOT NULL, `title` varchar(100) NOT NULL DEFAULT '',
`description` varchar(1000) DEFAULT '', `description` varchar(1000) DEFAULT '',
`url` varchar(100) NOT NULL, `url` varchar(100) NOT NULL,
`tags` varchar(1000) NOT NULL DEFAULT '', `tags` varchar(1000) NOT NULL DEFAULT '',
@ -20,9 +20,11 @@ CREATE TABLE IF NOT EXISTS `?` (
`focal` varchar(20) NOT NULL, `focal` varchar(20) NOT NULL,
`takestamp` int(11) DEFAULT NULL, `takestamp` int(11) DEFAULT NULL,
`star` tinyint(1) NOT NULL, `star` tinyint(1) NOT NULL,
`thumbUrl` varchar(50) NOT NULL, `thumbUrl` char(37) NOT NULL,
`album` varchar(30) NOT NULL DEFAULT '0', `album` bigint(20) unsigned NOT NULL,
`checksum` VARCHAR(100) DEFAULT NULL, `checksum` char(40) DEFAULT NULL,
`medium` tinyint(1) NOT NULL DEFAULT '0', `medium` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) PRIMARY KEY (`id`),
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; KEY `Index_album` (`album`),
KEY `Index_star` (`star`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@ -4,4 +4,4 @@
CREATE TABLE IF NOT EXISTS `?` ( CREATE TABLE IF NOT EXISTS `?` (
`key` varchar(50) NOT NULL DEFAULT '', `key` varchar(50) NOT NULL DEFAULT '',
`value` varchar(200) DEFAULT '' `value` varchar(200) DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;