diff --git a/php/database/albums_table.sql b/php/database/albums_table.sql index 3ebce1a..cce7095 100644 --- a/php/database/albums_table.sql +++ b/php/database/albums_table.sql @@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS `lychee_albums` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, `description` varchar(1000) DEFAULT '', - `sysdate` varchar(10) NOT NULL, + `sysstamp` int(11) NOT NULL, `public` tinyint(1) NOT NULL DEFAULT '0', `visible` tinyint(1) NOT NULL DEFAULT '1', `password` varchar(100) DEFAULT '', diff --git a/php/database/photos_table.sql b/php/database/photos_table.sql index 9f73be8..4ed4f95 100644 --- a/php/database/photos_table.sql +++ b/php/database/photos_table.sql @@ -19,11 +19,9 @@ CREATE TABLE IF NOT EXISTS `lychee_photos` ( `model` varchar(50) NOT NULL, `shutter` varchar(30) NOT NULL, `focal` varchar(20) NOT NULL, - `takedate` varchar(20) NOT NULL, - `taketime` varchar(8) NOT NULL, + `takestamp` int(11) DEFAULT NULL, `star` tinyint(1) NOT NULL, `thumbUrl` varchar(50) NOT NULL, `album` varchar(30) NOT NULL DEFAULT '0', - `import_name` varchar(100) DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; \ No newline at end of file