Login   Register  
PHP Classes
elePHPant
Icontem

File: tables.sql

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ladislav Vondracek  >  Crutch Translate  >  tables.sql  >  Download  
File: tables.sql
Role: Auxiliary data
Content type: text/plain
Description: sql for create tables
Class: Crutch Translate
Retrieve and manage text translations from MySQL
Author: By
Last change:
Date: 2011-09-05 09:13
Size: 919 bytes
 

Contents

Class file image Download
CREATE TABLE IF NOT EXISTS `localize` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `idf` varchar(255) DEFAULT NULL,
  `lang` varchar(5) DEFAULT NULL,
  `module` varchar(10) NOT NULL,
  `translation` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `un_module_idf_lang` (`module`,`idf`,`lang`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `localize_plural` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `localize_id` mediumint(8) unsigned NOT NULL,
  `limit` mediumint(8) unsigned NOT NULL,
  `translation` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `un_localize_id_limit` (`localize_id`,`limit`),
  KEY `fk_localize_id` (`localize_id`),
  KEY `where_limit` (`limit`),
  CONSTRAINT `localize_plural_fk_localize` FOREIGN KEY (`localize_id`) REFERENCES `localize` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;