mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 02:51:04 +00:00
Be consistent between migration & schema definition
This commit is contained in:
parent
6514f0ed37
commit
3ef75cc4e3
4 changed files with 4 additions and 3 deletions
|
@ -35,6 +35,7 @@ class Version20161106113822 extends AbstractMigration implements ContainerAwareI
|
||||||
|
|
||||||
$configTable->addColumn('action_mark_as_read', 'integer', [
|
$configTable->addColumn('action_mark_as_read', 'integer', [
|
||||||
'default' => 0,
|
'default' => 0,
|
||||||
|
'notnull' => false,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Client extends BaseClient
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @ORM\Column(name="name", type="text", nullable=true)
|
* @ORM\Column(name="name", type="text", nullable=false)
|
||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ class Config
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*
|
*
|
||||||
* @ORM\Column(name="action_mark_as_read", type="integer", nullable=true)
|
* @ORM\Column(name="action_mark_as_read", type="integer", nullable=true, options={"default" = 0})
|
||||||
*/
|
*/
|
||||||
private $actionMarkAsRead;
|
private $actionMarkAsRead;
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ class Entry
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @ORM\Column(name="http_status", type="text", nullable=true)
|
* @ORM\Column(name="http_status", type="string", length=3, nullable=true)
|
||||||
*
|
*
|
||||||
* @Groups({"entries_for_user", "export_all"})
|
* @Groups({"entries_for_user", "export_all"})
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue