2007-01-16 23:39:39 +00:00
|
|
|
-- MySQL dump 9.11
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
2006-03-04 23:31:46 +00:00
|
|
|
-- Host: localhost Database: pwg-bsf
|
2005-07-16 14:29:35 +00:00
|
|
|
-- ------------------------------------------------------
|
2006-03-04 23:31:46 +00:00
|
|
|
-- Server version 4.0.24_Debian-10-log
|
2004-01-07 00:00:01 +00:00
|
|
|
|
2005-03-25 22:26:35 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_caddie`
|
2005-03-25 22:26:35 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_caddie`;
|
|
|
|
CREATE TABLE `piwigo_caddie` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2005-07-16 14:29:35 +00:00
|
|
|
`element_id` mediumint(8) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`user_id`,`element_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2005-03-25 22:26:35 +00:00
|
|
|
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_categories`
|
2005-07-16 14:29:35 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_categories`;
|
|
|
|
CREATE TABLE `piwigo_categories` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`id` smallint(5) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
|
|
|
`id_uppercat` smallint(5) unsigned default NULL,
|
|
|
|
`comment` text,
|
|
|
|
`dir` varchar(255) default NULL,
|
2006-05-15 21:47:28 +00:00
|
|
|
`rank` smallint(5) unsigned default NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
`status` enum('public','private') NOT NULL default 'public',
|
2012-12-24 10:16:33 +00:00
|
|
|
`site_id` tinyint(4) unsigned default NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
`visible` enum('true','false') NOT NULL default 'true',
|
|
|
|
`representative_picture_id` mediumint(8) unsigned default NULL,
|
|
|
|
`uppercats` varchar(255) NOT NULL default '',
|
|
|
|
`commentable` enum('true','false') NOT NULL default 'true',
|
|
|
|
`global_rank` varchar(255) default NULL,
|
2006-07-26 00:51:08 +00:00
|
|
|
`image_order` varchar(128) default NULL,
|
2008-09-12 02:17:35 +00:00
|
|
|
`permalink` varchar(64) binary default NULL,
|
2014-05-24 14:18:04 +00:00
|
|
|
`lastmodified` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2005-07-16 14:29:35 +00:00
|
|
|
PRIMARY KEY (`id`),
|
2007-03-09 16:28:49 +00:00
|
|
|
UNIQUE KEY `categories_i3` (`permalink`),
|
2014-05-24 14:18:04 +00:00
|
|
|
KEY `categories_i2` (`id_uppercat`),
|
|
|
|
KEY `lastmodified` (`lastmodified`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_comments`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_comments`;
|
|
|
|
CREATE TABLE `piwigo_comments` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`id` int(11) unsigned NOT NULL auto_increment,
|
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`author` varchar(255) default NULL,
|
2012-09-23 09:34:30 +00:00
|
|
|
`email` varchar(255) default NULL,
|
2014-07-24 08:34:02 +00:00
|
|
|
`author_id` mediumint(8) unsigned DEFAULT NULL,
|
2012-06-24 01:24:55 +00:00
|
|
|
`anonymous_id` varchar(45) NOT NULL,
|
2012-08-03 17:02:24 +00:00
|
|
|
`website_url` varchar(255) DEFAULT NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
`content` longtext,
|
|
|
|
`validated` enum('true','false') NOT NULL default 'false',
|
|
|
|
`validation_date` datetime default NULL,
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `comments_i2` (`validation_date`),
|
|
|
|
KEY `comments_i1` (`image_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_config`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_config`;
|
|
|
|
CREATE TABLE `piwigo_config` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`param` varchar(40) NOT NULL default '',
|
2006-03-09 01:57:13 +00:00
|
|
|
`value` text,
|
2005-07-16 14:29:35 +00:00
|
|
|
`comment` varchar(255) default NULL,
|
|
|
|
PRIMARY KEY (`param`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM COMMENT='configuration table';
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_favorites`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_favorites`;
|
|
|
|
CREATE TABLE `piwigo_favorites` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2005-07-16 14:29:35 +00:00
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`user_id`,`image_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_group_access`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_group_access`;
|
|
|
|
CREATE TABLE `piwigo_group_access` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`group_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
`cat_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`group_id`,`cat_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_groups`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_groups`;
|
|
|
|
CREATE TABLE `piwigo_groups` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`id` smallint(5) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
2006-10-30 23:34:31 +00:00
|
|
|
`is_default` enum('true','false') NOT NULL default 'false',
|
2014-05-24 14:18:04 +00:00
|
|
|
`lastmodified` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2007-04-19 20:40:38 +00:00
|
|
|
PRIMARY KEY (`id`),
|
2014-05-24 14:18:04 +00:00
|
|
|
UNIQUE KEY `groups_ui1` (`name`),
|
|
|
|
KEY `lastmodified` (`lastmodified`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_history`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_history`;
|
|
|
|
CREATE TABLE `piwigo_history` (
|
2007-01-16 23:39:39 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`date` date NOT NULL default '0000-00-00',
|
|
|
|
`time` time NOT NULL default '00:00:00',
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2007-01-16 23:39:39 +00:00
|
|
|
`IP` varchar(15) NOT NULL default '',
|
|
|
|
`section` enum('categories','tags','search','list','favorites','most_visited','best_rated','recent_pics','recent_cats') default NULL,
|
|
|
|
`category_id` smallint(5) default NULL,
|
|
|
|
`tag_ids` varchar(50) default NULL,
|
|
|
|
`image_id` mediumint(8) default NULL,
|
|
|
|
`summarized` enum('true','false') default 'false',
|
2007-02-20 23:40:02 +00:00
|
|
|
`image_type` enum('picture','high','other') default NULL,
|
2015-12-07 10:54:18 +01:00
|
|
|
`format_id` int(11) unsigned default NULL,
|
2016-01-18 14:02:40 +01:00
|
|
|
`auth_key_id` int(11) unsigned DEFAULT NULL,
|
2007-01-16 23:39:39 +00:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `history_i1` (`summarized`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2007-01-16 23:39:39 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_history_summary`
|
2007-01-16 23:39:39 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_history_summary`;
|
|
|
|
CREATE TABLE `piwigo_history_summary` (
|
2007-01-16 23:39:39 +00:00
|
|
|
`year` smallint(4) NOT NULL default '0',
|
|
|
|
`month` tinyint(2) default NULL,
|
|
|
|
`day` tinyint(2) default NULL,
|
|
|
|
`hour` tinyint(2) default NULL,
|
|
|
|
`nb_pages` int(11) default NULL,
|
2008-05-06 01:04:58 +00:00
|
|
|
UNIQUE KEY history_summary_ymdh (`year`,`month`,`day`,`hour`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_image_category`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_image_category`;
|
|
|
|
CREATE TABLE `piwigo_image_category` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`category_id` smallint(5) unsigned NOT NULL default '0',
|
2008-09-11 21:40:00 +00:00
|
|
|
`rank` mediumint(8) unsigned default NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
PRIMARY KEY (`image_id`,`category_id`),
|
2007-03-27 08:43:10 +00:00
|
|
|
KEY `image_category_i1` (`category_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
2015-12-03 16:04:02 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `piwigo_image_format`
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE `piwigo_image_format` (
|
|
|
|
`format_id` int(11) unsigned NOT NULL auto_increment,
|
|
|
|
`image_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
|
|
|
|
`ext` varchar(255) NOT NULL,
|
|
|
|
`filesize` mediumint(9) unsigned DEFAULT NULL,
|
|
|
|
PRIMARY KEY (`format_id`)
|
|
|
|
) ENGINE=MyISAM;
|
|
|
|
|
2006-04-02 22:26:19 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_image_tag`
|
2006-04-02 22:26:19 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_image_tag`;
|
|
|
|
CREATE TABLE `piwigo_image_tag` (
|
2006-04-02 22:26:19 +00:00
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`tag_id` smallint(5) unsigned NOT NULL default '0',
|
2006-04-06 02:23:54 +00:00
|
|
|
PRIMARY KEY (`image_id`,`tag_id`),
|
|
|
|
KEY `image_tag_i1` (`tag_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2006-04-02 22:26:19 +00:00
|
|
|
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_images`
|
2005-07-16 14:29:35 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_images`;
|
|
|
|
CREATE TABLE `piwigo_images` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`id` mediumint(8) unsigned NOT NULL auto_increment,
|
2008-09-12 02:17:35 +00:00
|
|
|
`file` varchar(255) binary NOT NULL default '',
|
2005-07-16 14:29:35 +00:00
|
|
|
`date_available` datetime NOT NULL default '0000-00-00 00:00:00',
|
2011-02-03 08:18:38 +00:00
|
|
|
`date_creation` datetime default NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
`name` varchar(255) default NULL,
|
|
|
|
`comment` text,
|
|
|
|
`author` varchar(255) default NULL,
|
|
|
|
`hit` int(10) unsigned NOT NULL default '0',
|
|
|
|
`filesize` mediumint(9) unsigned default NULL,
|
|
|
|
`width` smallint(9) unsigned default NULL,
|
|
|
|
`height` smallint(9) unsigned default NULL,
|
2012-04-02 12:18:17 +00:00
|
|
|
`coi` char(4) default NULL COMMENT 'center of interest',
|
2005-07-16 14:29:35 +00:00
|
|
|
`representative_ext` varchar(4) default NULL,
|
|
|
|
`date_metadata_update` date default NULL,
|
2011-08-02 19:20:50 +00:00
|
|
|
`rating_score` float(5,2) unsigned default NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
`path` varchar(255) NOT NULL default '',
|
2006-04-04 22:29:35 +00:00
|
|
|
`storage_category_id` smallint(5) unsigned default NULL,
|
2007-09-11 02:24:51 +00:00
|
|
|
`level` tinyint unsigned NOT NULL default '0',
|
2008-09-25 23:01:35 +00:00
|
|
|
`md5sum` char(32) default NULL,
|
2014-07-24 08:34:02 +00:00
|
|
|
`added_by` mediumint(8) unsigned NOT NULL default '0',
|
2013-12-06 19:14:44 +00:00
|
|
|
`rotation` tinyint unsigned default NULL,
|
|
|
|
`latitude` double(8, 6) default NULL,
|
|
|
|
`longitude` double(9, 6) default NULL,
|
2014-05-24 14:18:04 +00:00
|
|
|
`lastmodified` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2005-07-16 14:29:35 +00:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `images_i2` (`date_available`),
|
2011-08-02 19:20:50 +00:00
|
|
|
KEY `images_i3` (`rating_score`),
|
2005-07-16 14:29:35 +00:00
|
|
|
KEY `images_i4` (`hit`),
|
2006-04-13 20:42:37 +00:00
|
|
|
KEY `images_i5` (`date_creation`),
|
2013-12-06 19:14:44 +00:00
|
|
|
KEY `images_i1` (`storage_category_id`),
|
2014-05-24 14:18:04 +00:00
|
|
|
KEY `images_i6` (`latitude`),
|
|
|
|
KEY `lastmodified` (`lastmodified`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
2010-03-25 10:27:17 +00:00
|
|
|
--
|
|
|
|
-- Table structure for table `piwigo_languages`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `piwigo_languages`;
|
|
|
|
CREATE TABLE `piwigo_languages` (
|
|
|
|
`id` varchar(64) NOT NULL default '',
|
|
|
|
`version` varchar(64) NOT NULL default '0',
|
|
|
|
`name` varchar(64) default NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2010-03-25 10:27:17 +00:00
|
|
|
|
2007-02-28 03:07:12 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_old_permalinks`
|
2007-02-28 03:07:12 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_old_permalinks`;
|
|
|
|
CREATE TABLE `piwigo_old_permalinks` (
|
2007-03-09 16:28:49 +00:00
|
|
|
`cat_id` smallint(5) unsigned NOT NULL default '0',
|
2008-09-12 02:17:35 +00:00
|
|
|
`permalink` varchar(64) binary NOT NULL default '',
|
2007-03-09 16:28:49 +00:00
|
|
|
`date_deleted` datetime NOT NULL default '0000-00-00 00:00:00',
|
2007-02-28 03:07:12 +00:00
|
|
|
`last_hit` datetime default NULL,
|
|
|
|
`hit` int(10) unsigned NOT NULL default '0',
|
2007-03-09 16:28:49 +00:00
|
|
|
PRIMARY KEY (`permalink`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2007-02-28 03:07:12 +00:00
|
|
|
|
2006-10-31 02:41:32 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_plugins`
|
2006-10-31 02:41:32 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_plugins`;
|
|
|
|
CREATE TABLE `piwigo_plugins` (
|
2006-10-31 02:41:32 +00:00
|
|
|
`id` varchar(64) binary NOT NULL default '',
|
|
|
|
`state` enum('inactive','active') NOT NULL default 'inactive',
|
|
|
|
`version` varchar(64) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2006-10-31 02:41:32 +00:00
|
|
|
|
2004-08-30 22:00:46 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_rate`
|
2004-08-30 22:00:46 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_rate`;
|
|
|
|
CREATE TABLE `piwigo_rate` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2005-07-16 14:29:35 +00:00
|
|
|
`element_id` mediumint(8) unsigned NOT NULL default '0',
|
2006-02-14 01:14:31 +00:00
|
|
|
`anonymous_id` varchar(45) NOT NULL default '',
|
2005-07-16 14:29:35 +00:00
|
|
|
`rate` tinyint(2) unsigned NOT NULL default '0',
|
2006-02-14 01:14:31 +00:00
|
|
|
`date` date NOT NULL default '0000-00-00',
|
|
|
|
PRIMARY KEY (`element_id`,`user_id`,`anonymous_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-08-30 22:00:46 +00:00
|
|
|
|
2006-01-20 14:34:37 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_search`
|
2006-01-20 14:34:37 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_search`;
|
|
|
|
CREATE TABLE `piwigo_search` (
|
2006-01-20 14:34:37 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`last_seen` date default NULL,
|
|
|
|
`rules` text,
|
|
|
|
PRIMARY KEY (`id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2006-01-20 14:34:37 +00:00
|
|
|
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_sessions`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_sessions`;
|
|
|
|
CREATE TABLE `piwigo_sessions` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`id` varchar(255) binary NOT NULL default '',
|
2008-04-30 01:03:14 +00:00
|
|
|
`data` mediumtext NOT NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
`expiration` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
PRIMARY KEY (`id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_sites`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_sites`;
|
|
|
|
CREATE TABLE `piwigo_sites` (
|
2005-07-16 14:29:35 +00:00
|
|
|
`id` tinyint(4) NOT NULL auto_increment,
|
|
|
|
`galleries_url` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `sites_ui1` (`galleries_url`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
2006-04-02 22:26:19 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_tags`
|
2006-04-02 22:26:19 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_tags`;
|
|
|
|
CREATE TABLE `piwigo_tags` (
|
2006-04-02 22:26:19 +00:00
|
|
|
`id` smallint(5) unsigned NOT NULL auto_increment,
|
2014-04-09 21:21:43 +00:00
|
|
|
`name` varchar(255) NOT NULL default '',
|
2006-04-02 22:26:19 +00:00
|
|
|
`url_name` varchar(255) binary NOT NULL default '',
|
2014-05-24 14:18:04 +00:00
|
|
|
`lastmodified` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2006-04-06 02:23:54 +00:00
|
|
|
PRIMARY KEY (`id`),
|
2014-05-24 14:18:04 +00:00
|
|
|
KEY `tags_i1` (`url_name`),
|
|
|
|
KEY `lastmodified` (`lastmodified`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2006-04-02 22:26:19 +00:00
|
|
|
|
2010-03-17 00:48:38 +00:00
|
|
|
--
|
|
|
|
-- Table structure for table `piwigo_themes`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `piwigo_themes`;
|
|
|
|
CREATE TABLE `piwigo_themes` (
|
|
|
|
`id` varchar(64) NOT NULL default '',
|
|
|
|
`version` varchar(64) NOT NULL default '0',
|
|
|
|
`name` varchar(64) default NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2010-03-17 00:48:38 +00:00
|
|
|
|
2005-11-24 21:37:29 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_upgrade`
|
2005-11-24 21:37:29 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_upgrade`;
|
|
|
|
CREATE TABLE `piwigo_upgrade` (
|
2005-11-24 21:37:29 +00:00
|
|
|
`id` varchar(20) NOT NULL default '',
|
|
|
|
`applied` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`description` varchar(255) default NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2005-11-24 21:37:29 +00:00
|
|
|
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_user_access`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_user_access`;
|
|
|
|
CREATE TABLE `piwigo_user_access` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2005-07-16 14:29:35 +00:00
|
|
|
`cat_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`user_id`,`cat_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
2016-01-18 14:02:40 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `piwigo_user_auth_keys`
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE `piwigo_user_auth_keys` (
|
|
|
|
`auth_key_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`auth_key` varchar(255) NOT NULL,
|
|
|
|
`user_id` mediumint(8) unsigned NOT NULL,
|
|
|
|
`created_on` datetime NOT NULL,
|
|
|
|
`duration` int(11) unsigned DEFAULT NULL,
|
|
|
|
`expired_on` datetime NOT NULL,
|
|
|
|
PRIMARY KEY (`auth_key_id`)
|
|
|
|
) ENGINE=MyISAM;
|
|
|
|
|
2004-12-20 12:30:36 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_user_cache`
|
2004-12-20 12:30:36 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_user_cache`;
|
|
|
|
CREATE TABLE `piwigo_user_cache` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2005-07-16 14:29:35 +00:00
|
|
|
`need_update` enum('true','false') NOT NULL default 'true',
|
2008-07-22 10:32:25 +00:00
|
|
|
`cache_update_time` integer unsigned NOT NULL default 0,
|
2008-04-30 01:03:14 +00:00
|
|
|
`forbidden_categories` mediumtext,
|
2006-04-02 22:26:19 +00:00
|
|
|
`nb_total_images` mediumint(8) unsigned default NULL,
|
2013-03-23 10:02:04 +00:00
|
|
|
`last_photo_date` datetime DEFAULT NULL,
|
|
|
|
`nb_available_tags` INT(5) DEFAULT NULL,
|
2013-04-11 10:04:32 +00:00
|
|
|
`nb_available_comments` INT(5) DEFAULT NULL,
|
2007-09-11 02:24:51 +00:00
|
|
|
`image_access_type` enum('NOT IN','IN') NOT NULL default 'NOT IN',
|
2008-04-30 01:03:14 +00:00
|
|
|
`image_access_list` mediumtext default NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
PRIMARY KEY (`user_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-12-20 12:30:36 +00:00
|
|
|
|
2006-12-01 23:31:19 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_user_cache_categories`
|
2006-12-01 23:31:19 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_user_cache_categories`;
|
|
|
|
CREATE TABLE `piwigo_user_cache_categories` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2006-12-01 23:31:19 +00:00
|
|
|
`cat_id` smallint(5) unsigned NOT NULL default '0',
|
2008-05-01 01:12:34 +00:00
|
|
|
`date_last` datetime default NULL,
|
2006-12-01 23:31:19 +00:00
|
|
|
`max_date_last` datetime default NULL,
|
2008-05-01 01:12:34 +00:00
|
|
|
`nb_images` mediumint(8) unsigned NOT NULL default '0',
|
2007-01-16 23:39:39 +00:00
|
|
|
`count_images` mediumint(8) unsigned default '0',
|
2013-05-26 19:56:31 +00:00
|
|
|
`nb_categories` mediumint(8) unsigned default '0',
|
2007-01-16 23:39:39 +00:00
|
|
|
`count_categories` mediumint(8) unsigned default '0',
|
2011-01-20 13:32:34 +00:00
|
|
|
`user_representative_picture_id` mediumint(8) unsigned default NULL,
|
2007-01-16 23:39:39 +00:00
|
|
|
PRIMARY KEY (`user_id`,`cat_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2006-12-01 23:31:19 +00:00
|
|
|
|
2005-08-19 13:54:40 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_user_feed`
|
2005-08-19 13:54:40 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_user_feed`;
|
|
|
|
CREATE TABLE `piwigo_user_feed` (
|
2005-08-19 13:54:40 +00:00
|
|
|
`id` varchar(50) binary NOT NULL default '',
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2005-08-19 13:54:40 +00:00
|
|
|
`last_check` datetime default NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2005-08-19 13:54:40 +00:00
|
|
|
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_user_group`
|
2004-01-07 00:00:01 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_user_group`;
|
|
|
|
CREATE TABLE `piwigo_user_group` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2005-07-16 14:29:35 +00:00
|
|
|
`group_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`group_id`,`user_id`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2004-01-07 00:00:01 +00:00
|
|
|
|
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_user_infos`
|
2005-07-16 14:29:35 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_user_infos`;
|
|
|
|
CREATE TABLE `piwigo_user_infos` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2011-04-12 20:07:14 +00:00
|
|
|
`nb_image_page` smallint(3) unsigned NOT NULL default '15',
|
2006-04-02 22:26:19 +00:00
|
|
|
`status` enum('webmaster','admin','normal','generic','guest') NOT NULL default 'guest',
|
2007-10-09 01:43:29 +00:00
|
|
|
`language` varchar(50) NOT NULL default 'en_UK',
|
2005-07-16 14:29:35 +00:00
|
|
|
`expand` enum('true','false') NOT NULL default 'false',
|
|
|
|
`show_nb_comments` enum('true','false') NOT NULL default 'false',
|
2007-01-28 19:00:09 +00:00
|
|
|
`show_nb_hits` enum('true','false') NOT NULL default 'false',
|
2005-07-16 14:29:35 +00:00
|
|
|
`recent_period` tinyint(3) unsigned NOT NULL default '7',
|
2012-03-02 22:14:38 +00:00
|
|
|
`theme` varchar(255) NOT NULL default 'elegant',
|
2005-07-16 14:29:35 +00:00
|
|
|
`registration_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
2006-03-13 23:27:34 +00:00
|
|
|
`enabled_high` enum('true','false') NOT NULL default 'true',
|
2007-09-11 02:24:51 +00:00
|
|
|
`level` tinyint unsigned NOT NULL default '0',
|
2014-09-20 11:52:45 +00:00
|
|
|
`activation_key` varchar(255) default NULL,
|
|
|
|
`activation_key_expire` datetime default NULL,
|
2014-05-24 14:18:04 +00:00
|
|
|
`lastmodified` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
PRIMARY KEY (`user_id`),
|
|
|
|
KEY `lastmodified` (`lastmodified`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2005-08-08 20:52:19 +00:00
|
|
|
|
2006-03-04 23:31:46 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_user_mail_notification`
|
2006-03-04 23:31:46 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_user_mail_notification`;
|
|
|
|
CREATE TABLE `piwigo_user_mail_notification` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`user_id` mediumint(8) unsigned NOT NULL default '0',
|
2006-04-01 01:14:57 +00:00
|
|
|
`check_key` varchar(16) binary NOT NULL default '',
|
2006-03-04 23:31:46 +00:00
|
|
|
`enabled` enum('true','false') NOT NULL default 'false',
|
|
|
|
`last_send` datetime default NULL,
|
|
|
|
PRIMARY KEY (`user_id`),
|
2007-03-27 08:43:10 +00:00
|
|
|
UNIQUE KEY `user_mail_notification_ui1` (`check_key`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|
2006-03-04 23:31:46 +00:00
|
|
|
|
2005-08-08 20:52:19 +00:00
|
|
|
--
|
2008-05-14 22:25:36 +00:00
|
|
|
-- Table structure for table `piwigo_users`
|
2005-08-08 20:52:19 +00:00
|
|
|
--
|
|
|
|
|
2008-05-14 22:25:36 +00:00
|
|
|
DROP TABLE IF EXISTS `piwigo_users`;
|
|
|
|
CREATE TABLE `piwigo_users` (
|
2014-07-24 08:34:02 +00:00
|
|
|
`id` mediumint(8) unsigned NOT NULL auto_increment,
|
2006-07-25 07:40:02 +00:00
|
|
|
`username` varchar(100) binary NOT NULL default '',
|
2012-11-02 13:59:07 +00:00
|
|
|
`password` varchar(255) default NULL,
|
2005-08-08 20:52:19 +00:00
|
|
|
`mail_address` varchar(255) default NULL,
|
2005-07-16 14:29:35 +00:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `users_ui1` (`username`)
|
2011-02-03 21:59:51 +00:00
|
|
|
) ENGINE=MyISAM;
|