|
@@ -33,6 +33,7 @@ class SpecialTagFixture extends TestFixture {
|
|
|
'tag_id' => ['type' => 'integer', 'null' => false],
|
|
'tag_id' => ['type' => 'integer', 'null' => false],
|
|
|
'highlighted' => ['type' => 'boolean', 'null' => true],
|
|
'highlighted' => ['type' => 'boolean', 'null' => true],
|
|
|
'highlighted_time' => ['type' => 'timestamp', 'null' => true],
|
|
'highlighted_time' => ['type' => 'timestamp', 'null' => true],
|
|
|
|
|
+ 'author_id' => ['type' => 'integer', 'null' => true],
|
|
|
'_constraints' => [
|
|
'_constraints' => [
|
|
|
'primary' => ['type' => 'primary', 'columns' => ['id']],
|
|
'primary' => ['type' => 'primary', 'columns' => ['id']],
|
|
|
'UNIQUE_TAG2' => ['type' => 'unique', 'columns' => ['article_id', 'tag_id']]
|
|
'UNIQUE_TAG2' => ['type' => 'unique', 'columns' => ['article_id', 'tag_id']]
|
|
@@ -45,8 +46,8 @@ class SpecialTagFixture extends TestFixture {
|
|
|
* @var array
|
|
* @var array
|
|
|
*/
|
|
*/
|
|
|
public $records = array(
|
|
public $records = array(
|
|
|
- array('article_id' => 1, 'tag_id' => 3, 'highlighted' => false, 'highlighted_time' => null),
|
|
|
|
|
- array('article_id' => 2, 'tag_id' => 1, 'highlighted' => true, 'highlighted_time' => '2014-06-01 10:10:00')
|
|
|
|
|
|
|
+ array('article_id' => 1, 'tag_id' => 3, 'highlighted' => false, 'highlighted_time' => null, 'author_id' => null),
|
|
|
|
|
+ array('article_id' => 2, 'tag_id' => 1, 'highlighted' => true, 'highlighted_time' => '2014-06-01 10:10:00', 'author_id' => null)
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|