Skip to content

Commit

Permalink
Updated default tables to reflect changes made in #533
Browse files Browse the repository at this point in the history
  • Loading branch information
electerious committed Jun 11, 2016
1 parent 2bcccc4 commit 5c4f341
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions php/database/albums_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ------------------------------------------------------------

CREATE TABLE IF NOT EXISTS `?` (
`id` bigint(14) NOT NULL,
`id` bigint(14) unsigned NOT NULL,
`title` varchar(100) NOT NULL DEFAULT '',
`description` varchar(1000) DEFAULT '',
`sysstamp` int(11) NOT NULL,
Expand All @@ -11,4 +11,4 @@ CREATE TABLE IF NOT EXISTS `?` (
`downloadable` tinyint(1) NOT NULL DEFAULT '0',
`password` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
4 changes: 2 additions & 2 deletions php/database/log_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ CREATE TABLE IF NOT EXISTS `?` (
`type` varchar(11) NOT NULL,
`function` varchar(100) NOT NULL,
`line` int(11) NOT NULL,
`text` TEXT,
`text` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
16 changes: 9 additions & 7 deletions php/database/photos_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# ------------------------------------------------------------

CREATE TABLE IF NOT EXISTS `?` (
`id` bigint(14) NOT NULL,
`title` varchar(100) NOT NULL,
`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 '',
Expand All @@ -20,9 +20,11 @@ CREATE TABLE IF NOT EXISTS `?` (
`focal` varchar(20) NOT NULL,
`takestamp` int(11) DEFAULT NULL,
`star` tinyint(1) NOT NULL,
`thumbUrl` varchar(50) NOT NULL,
`album` varchar(30) NOT NULL DEFAULT '0',
`checksum` VARCHAR(100) DEFAULT NULL,
`thumbUrl` char(37) NOT NULL,
`album` bigint(20) unsigned NOT NULL,
`checksum` char(40) DEFAULT NULL,
`medium` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
PRIMARY KEY (`id`),
KEY `Index_album` (`album`),
KEY `Index_star` (`star`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2 changes: 1 addition & 1 deletion php/database/settings_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
CREATE TABLE IF NOT EXISTS `?` (
`key` varchar(50) NOT NULL DEFAULT '',
`value` varchar(200) DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

0 comments on commit 5c4f341

Please sign in to comment.