Base for a static organization website

i18n.sql 891B

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