ContinentFixture.php 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /* Continent Fixture generated on: 2011-07-15 19:07:38 : 1310752058 */
  3. class ContinentFixture extends CakeTestFixture {
  4. public $fields = array(
  5. 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
  6. 'name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 64, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
  7. 'ori_name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 64, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
  8. 'parent_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10),
  9. 'lft' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10),
  10. 'rgt' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10),
  11. 'status' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 2),
  12. 'modified' => array('type' => 'datetime', 'null' => false, 'default' => NULL),
  13. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
  14. 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'MyISAM')
  15. );
  16. public $records = array(
  17. array(
  18. 'id' => 1,
  19. 'name' => 'Lorem ipsum dolor sit amet',
  20. 'ori_name' => 'Lorem ipsum dolor sit amet',
  21. 'parent_id' => 1,
  22. 'lft' => 1,
  23. 'rgt' => 1,
  24. 'status' => 1,
  25. 'modified' => '2011-07-15 19:47:38'
  26. ),
  27. );
  28. }