Ignore:
Timestamp:
Oct 7, 2010, 8:04:43 PM (14 years ago)
Author:
grum
Message:

Admin interface + Gallery integration finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_install.class.inc.php

    r7054 r7125  
    4848
    4949      $tables_def=array(
    50 "CREATE TABLE   `".$this->tables['maps']."` (
     50"CREATE TABLE `".$this->tables['maps']."` (
    5151  `id` int(10) unsigned NOT NULL auto_increment,
    52   `mapId` char(12) NOT NULL,
    5352  `name` varchar(80) NOT NULL,
     53  `displayType` char(2) NOT NULL,
     54  `sizeMode` char(1) NOT NULL,
    5455  `width` int(10) unsigned NOT NULL default '470',
    5556  `height` int(10) unsigned NOT NULL default '210',
     
    6061  `scaleControl` char(1) NOT NULL default 'y',
    6162  `style` varchar(512) NOT NULL,
    62   PRIMARY KEY  (`id`),
    63   KEY `byMapId` (`mapId`)
     63  PRIMARY KEY  (`id`)
    6464)",
    65 "CREATE TABLE   `".$this->tables['category_maps']."` (
     65"CREATE TABLE `".$this->tables['category_maps']."` (
    6666  `id` int(10) unsigned NOT NULL auto_increment,
    67   `target` char(1) NOT NULL default 'P',
    68   `category_id` smallint(5) unsigned NOT NULL,
    69   `map_id` int(11) NOT NULL,
    70   `sort` smallint(5) unsigned NOT NULL default '0',
     67  `categoryId` smallint(5) unsigned NOT NULL,
     68  `mapId` int(11) NOT NULL,
     69  `imgSort` smallint(5) unsigned NOT NULL default '0',
    7170  `applySubCat` char(1) NOT NULL default 'y',
    7271  `kmlFileUrl` varchar(255) NOT NULL,
    73   `marker` varchar(1) NOT NULL,
     72  `icon` varchar(255) NOT NULL,
     73  `title` varchar(200) NOT NULL,
    7474  PRIMARY KEY  (`id`),
    75   KEY `byTarget` USING BTREE (`target`,`category_id`,`sort`),
    76   KEY `byCategorie` (`category_id`,`target`)
     75  KEY `byCategorie` (`categoryId`,`mapId`)
     76)",
     77"CREATE TABLE `".$this->tables['cache']."` (
     78  `userId` smallint(5) NOT NULL,
     79  `requestId` timestamp NOT NULL default '0000-00-00 00:00:00',
     80  `imageId` mediumint(8) NOT NULL,
     81  `latitude` decimal(20,17) NOT NULL default '0.00000000000000000',
     82  `longitude` decimal(20,17) NOT NULL default '0.00000000000000000',
     83  `imageName` varchar(255) NOT NULL,
     84  `imageTnFile` varchar(255) NOT NULL,
     85  `imageCatsId` varchar(255) NOT NULL,
     86  `imageCatsNames` varchar(255) NOT NULL,
     87  `imageCatsPLink` varchar(255) NOT NULL,
     88  PRIMARY KEY  USING BTREE (`userId`,`requestId`,`imageId`)
    7789)"
    7890      );
Note: See TracChangeset for help on using the changeset viewer.