CityFixture.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /* City Fixture generated on: 2011-11-20 21:58:46 : 1321822726 */
  3. /**
  4. * CityFixture
  5. *
  6. */
  7. class CityFixture extends CakeTestFixture {
  8. /**
  9. * Fields
  10. *
  11. * @var array
  12. */
  13. public $fields = array(
  14. 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary', 'collate' => NULL, 'comment' => ''),
  15. 'name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 30, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  16. 'slug' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 40, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  17. 'lat' => array('type' => 'float', 'null' => false, 'default' => '0.000000', 'length' => '10,6', 'collate' => NULL, 'comment' => ''),
  18. 'lng' => array('type' => 'float', 'null' => false, 'default' => '0.000000', 'length' => '10,6', 'collate' => NULL, 'comment' => ''),
  19. 'active' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'collate' => NULL, 'comment' => ''),
  20. 'created' => array('type' => 'datetime', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''),
  21. 'modified' => array('type' => 'datetime', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''),
  22. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
  23. 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'MyISAM')
  24. );
  25. /**
  26. * Records
  27. *
  28. * @var array
  29. */
  30. public $records = array(
  31. array(
  32. 'id' => '1',
  33. 'name' => 'München',
  34. 'slug' => 'muenchen',
  35. 'lat' => '48.139126',
  36. 'lng' => '11.580186',
  37. 'active' => 1,
  38. 'created' => '0000-00-00 00:00:00',
  39. 'modified' => '0000-00-00 00:00:00'
  40. ),
  41. array(
  42. 'id' => '3',
  43. 'name' => 'Stuttgart',
  44. 'slug' => 'Stuttgart',
  45. 'lat' => '48.777107',
  46. 'lng' => '9.180769',
  47. 'active' => 1,
  48. 'created' => '2011-10-07 16:48:05',
  49. 'modified' => '0000-00-00 00:00:00'
  50. ),
  51. );
  52. }