2a8b1f9ec2
Fixing a DEFAULT that wasn't set
32 lines
1.0 KiB
SQL
32 lines
1.0 KiB
SQL
# Dump of table lychee_photos
|
|
# ------------------------------------------------------------
|
|
|
|
CREATE TABLE IF NOT EXISTS `?` (
|
|
`id` bigint(14) unsigned NOT NULL,
|
|
`title` varchar(100) NOT NULL DEFAULT '',
|
|
`description` varchar(1000) DEFAULT '',
|
|
`url` varchar(100) NOT NULL,
|
|
`tags` varchar(1000) NOT NULL DEFAULT '',
|
|
`public` tinyint(1) NOT NULL,
|
|
`type` varchar(10) NOT NULL,
|
|
`width` int(11) NOT NULL,
|
|
`height` int(11) NOT NULL,
|
|
`size` varchar(20) NOT NULL,
|
|
`iso` varchar(15) NOT NULL,
|
|
`aperture` varchar(20) NOT NULL,
|
|
`make` varchar(50) NOT NULL,
|
|
`model` varchar(50) NOT NULL,
|
|
`shutter` varchar(30) NOT NULL,
|
|
`focal` varchar(20) NOT NULL,
|
|
`takestamp` int(11) DEFAULT NULL,
|
|
`star` tinyint(1) NOT NULL,
|
|
`thumbUrl` char(37) NOT NULL,
|
|
`album` bigint(20) unsigned NOT NULL,
|
|
`checksum` char(40) DEFAULT NULL,
|
|
`medium` tinyint(1) NOT NULL DEFAULT '0',
|
|
`position` tinyint(1) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
KEY `Index_album` (`album`),
|
|
KEY `Index_star` (`star`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|