2007-04-25 00:24:19 +00:00
|
|
|
# $Id$
|
|
|
|
#
|
2008-01-02 21:33:51 +00:00
|
|
|
# Copyright 2005-2008, Cake Software Foundation, Inc.
|
2007-04-25 00:24:19 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2006-12-22 20:30:09 +00:00
|
|
|
CREATE TABLE i18n (
|
2007-04-25 00:24:19 +00:00
|
|
|
id int(10) NOT NULL auto_increment,
|
|
|
|
locale varchar(6) NOT NULL,
|
|
|
|
model varchar(255) NOT NULL,
|
2007-09-18 04:16:04 +00:00
|
|
|
foreign_key int(10) NOT NULL,
|
2007-04-25 00:24:19 +00:00
|
|
|
field varchar(255) NOT NULL,
|
2007-09-18 04:16:04 +00:00
|
|
|
content mediumtext,
|
2007-04-25 00:24:19 +00:00
|
|
|
PRIMARY KEY (id),
|
2007-09-18 04:16:04 +00:00
|
|
|
# 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)
|
2006-06-14 19:06:14 +00:00
|
|
|
);
|