Changeset 356 for trunk


Ignore:
Timestamp:
Feb 11, 2004, 12:46:51 AM (21 years ago)
Author:
z0rglub
Message:

adding all new features of branch 1.3, using new index naming convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/phpwebgallery_structure.sql

    r347 r356  
    11-- MySQL dump 8.21
    22--
    3 -- Host: localhost    Database: devel
     3-- Host: localhost    Database: pwg-bsf
    44---------------------------------------------------------
    55-- Server version       3.23.49-log
     
    2424  uploadable enum('true','false') NOT NULL default 'false',
    2525  representative_picture_id mediumint(8) unsigned default NULL,
    26   PRIMARY KEY  (id)
     26  uppercats varchar(255) NOT NULL default '',
     27  PRIMARY KEY  (id),
     28  KEY categories_i1 (id),
     29  KEY categories_i2 (id_uppercat)
    2730) TYPE=MyISAM;
    2831
     
    7982  user_id smallint(5) unsigned NOT NULL default '0',
    8083  image_id mediumint(8) unsigned NOT NULL default '0',
    81   KEY user_id (user_id,image_id)
     84  PRIMARY KEY (user_id,image_id)
    8285) TYPE=MyISAM;
    8386
     
    126129  image_id mediumint(8) unsigned NOT NULL default '0',
    127130  category_id smallint(5) unsigned NOT NULL default '0',
    128   PRIMARY KEY  (image_id,category_id)
     131  PRIMARY KEY  (image_id,category_id),
     132  KEY image_category_i1 (image_id),
     133  KEY image_category_i2 (category_id)
    129134) TYPE=MyISAM;
    130135
     
    175180  galleries_url varchar(255) NOT NULL default '',
    176181  PRIMARY KEY  (id),
    177   UNIQUE KEY galleries_url (galleries_url)
     182  UNIQUE KEY sites_ui1 (galleries_url)
    178183) TYPE=MyISAM;
    179184
     
    187192  cat_id smallint(5) unsigned NOT NULL default '0',
    188193  PRIMARY KEY  (user_id,cat_id)
     194) TYPE=MyISAM;
     195
     196--
     197-- Table structure for table 'phpwebgallery_user_category'
     198--
     199
     200DROP TABLE IF EXISTS phpwebgallery_user_category;
     201CREATE TABLE phpwebgallery_user_category (
     202  user_id smallint(5) unsigned NOT NULL default '0',
     203  category_id smallint(5) unsigned NOT NULL default '0',
     204  date_last date default NULL,
     205  nb_sub_categories smallint(5) unsigned NOT NULL default '0',
     206  PRIMARY KEY  (user_id,category_id)
    189207) TYPE=MyISAM;
    190208
     
    221239  long_period tinyint(3) unsigned NOT NULL default '14',
    222240  template varchar(255) NOT NULL default 'default',
    223   PRIMARY KEY  (id),
    224   UNIQUE KEY username (username)
     241  forbidden_categories text,
     242  PRIMARY KEY  (id),
     243  UNIQUE KEY users_ui1 (username)
    225244) TYPE=MyISAM;
    226245
Note: See TracChangeset for help on using the changeset viewer.