rflint%ryanflint.com ad95e006a4 Bug 378977 - Migrate to and ship with Cake 1.2 (part 1) - r=reed a=me
git-svn-id: svn://10.0.0.236/trunk@226993 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-25 05:54:28 +00:00

30 lines
830 B
SQL
Executable File

# $Id: i18n.sql,v 1.1 2007-05-25 05:54:14 rflint%ryanflint.com Exp $
#
# Copyright 2005-2007, Cake Software Foundation, Inc.
# 1785 E. Sahara Avenue, Suite 490-204
# Las Vegas, Nevada 89104
#
# Licensed under The MIT License
# Redistributions of files must retain the above copyright notice.
# http://www.opensource.org/licenses/mit-license.php The MIT License
CREATE TABLE i18n (
id int(10) NOT NULL auto_increment,
locale varchar(6) NOT NULL,
i18n_content_id int(10) NOT NULL,
model varchar(255) NOT NULL,
row_id int(10) NOT NULL,
field varchar(255) NOT NULL,
PRIMARY KEY (id),
KEY locale (locale),
KEY i18n_content_id (i18n_content_id),
KEY row_id (row_id),
KEY model (model),
KEY field (field)
);
CREATE TABLE i18n_content (
id int(10) NOT NULL auto_increment,
content text,
PRIMARY KEY (id)
);