| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * KeyValueFixture
- *
- */
- class KeyValueFixture extends CakeTestFixture {
- /**
- * Fields
- *
- * @var array
- */
- public $fields = array(
- 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
- 'foreign_id' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 36, 'key' => 'index', 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
- 'key' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 30, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
- 'value' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => 'option setting', 'charset' => 'utf8'),
- 'created' => array('type' => 'datetime', 'null' => true, 'default' => null),
- 'modified' => array('type' => 'datetime', 'null' => true, 'default' => null),
- 'indexes' => array(
- 'PRIMARY' => array('column' => 'id', 'unique' => 1),
- 'foreign_id' => array('column' => 'foreign_id', 'unique' => 0)
- ),
- 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'MyISAM')
- );
- /**
- * Records
- *
- * @var array
- */
- public $records = array(
- array(
- 'id' => 1,
- 'foreign_id' => '1',
- 'key' => 'User.registered',
- 'value' => 'yes',
- 'created' => '2012-08-08 01:26:50',
- 'modified' => '2012-08-08 01:26:50'
- ),
- );
- }
|