i18n.sql 797 B

1234567891011121314151617181920212223242526
  1. # $Id$
  2. #
  3. # Copyright 2005-2012, Cake Software Foundation, Inc.
  4. #
  5. # Licensed under The MIT License
  6. # Redistributions of files must retain the above copyright notice.
  7. # MIT License (http://www.opensource.org/licenses/mit-license.php)
  8. CREATE TABLE i18n (
  9. id int(10) NOT NULL auto_increment,
  10. locale varchar(6) NOT NULL,
  11. model varchar(255) NOT NULL,
  12. foreign_key int(10) NOT NULL,
  13. field varchar(255) NOT NULL,
  14. content mediumtext,
  15. PRIMARY KEY (id),
  16. # UNIQUE INDEX I18N_LOCALE_FIELD(locale, model, foreign_key, field),
  17. # INDEX I18N_LOCALE_ROW(locale, model, foreign_key),
  18. # INDEX I18N_LOCALE_MODEL(locale, model),
  19. # INDEX I18N_FIELD(model, foreign_key, field),
  20. # INDEX I18N_ROW(model, foreign_key),
  21. INDEX locale (locale),
  22. INDEX model (model),
  23. INDEX row_id (foreign_key),
  24. INDEX field (field)
  25. );