i18n.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /*i18n schema generated on: 2007-11-25 07:11:25 : 1196004805*/
  3. /**
  4. * This is i18n Schema file
  5. *
  6. * Use it to configure database for i18n
  7. *
  8. * PHP 5
  9. *
  10. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  11. * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  12. *
  13. * Licensed under The MIT License
  14. * Redistributions of files must retain the above copyright notice.
  15. *
  16. * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  17. * @link http://cakephp.org CakePHP(tm) Project
  18. * @package app.Config.Schema
  19. * @since CakePHP(tm) v 0.2.9
  20. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  21. */
  22. /*
  23. *
  24. * Using the Schema command line utility
  25. * cake schema run create i18n
  26. *
  27. */
  28. class i18nSchema extends CakeSchema {
  29. public $name = 'i18n';
  30. public function before($event = array()) {
  31. return true;
  32. }
  33. public function after($event = array()) {
  34. }
  35. public $i18n = array(
  36. 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
  37. 'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
  38. 'model' => array('type'=>'string', 'null' => false, 'key' => 'index'),
  39. 'foreign_key' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
  40. 'field' => array('type'=>'string', 'null' => false, 'key' => 'index'),
  41. 'content' => array('type'=>'text', 'null' => true, 'default' => NULL),
  42. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0))
  43. );
  44. }