2008-05-30 11:40:08 +00:00
|
|
|
# $Id$
|
|
|
|
#
|
2013-02-08 12:26:18 +00:00
|
|
|
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
#
|
|
|
|
# Licensed under The MIT License
|
2013-02-08 12:26:18 +00:00
|
|
|
# For full copyright and license information, please see the LICENSE.txt
|
2008-05-30 11:40:08 +00:00
|
|
|
# Redistributions of files must retain the above copyright notice.
|
2009-11-06 06:51:51 +00:00
|
|
|
# MIT License (http://www.opensource.org/licenses/mit-license.php)
|
2008-05-30 11:40:08 +00:00
|
|
|
|
|
|
|
CREATE TABLE i18n (
|
|
|
|
id int(10) NOT NULL auto_increment,
|
|
|
|
locale varchar(6) NOT NULL,
|
|
|
|
model varchar(255) NOT NULL,
|
|
|
|
foreign_key int(10) NOT NULL,
|
|
|
|
field varchar(255) NOT NULL,
|
|
|
|
content mediumtext,
|
|
|
|
PRIMARY KEY (id),
|
|
|
|
# UNIQUE INDEX I18N_LOCALE_FIELD(locale, model, foreign_key, field),
|
|
|
|
# INDEX I18N_LOCALE_ROW(locale, model, foreign_key),
|
|
|
|
# INDEX I18N_LOCALE_MODEL(locale, model),
|
|
|
|
# INDEX I18N_FIELD(model, foreign_key, field),
|
|
|
|
# INDEX I18N_ROW(model, foreign_key),
|
|
|
|
INDEX locale (locale),
|
|
|
|
INDEX model (model),
|
|
|
|
INDEX row_id (foreign_key),
|
|
|
|
INDEX field (field)
|
|
|
|
);
|