Files
PrestaShop/modules/cloudcache/sql/sql-install.php
jObregon fac1566a5f [+] MO : CloudCache module
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14929 b9a71923-0436-4b27-9f14-aed3839534dd
2012-04-26 16:39:43 +00:00

22 lines
681 B
PHP

<?php
$sql = array();
$sql[] = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'cloudcache_zone` (
`id_zone` int(10) unsigned NOT NULL,
`id_shop` int(10) unsigned NOT NULL,
`id_group_shop` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`origin` varchar(255) NULL,
`compress` tinyint NULL,
`label` varchar(255) NULL,
`cdn_url` varchar(255) NOT NULL,
`bw_yesterday` int(10) NOT NULL,
`bw_last_week` int(10) NOT NULL,
`bw_last_month` int(10) NOT NULL,
`file_type` varchar(16) NOT NULL,
`zone_type` varchar(16) NOT NULL,
PRIMARY KEY (`id_zone`, `id_shop`),
UNIQUE (`id_zone`, `name`, `cdn_url`))
ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;';