mirror of https://github.com/wallabag/wallabag.git
Be consistent between migration & schema definition
This commit is contained in:
parent
6514f0ed37
commit
3ef75cc4e3
|
@ -35,6 +35,7 @@ class Version20161106113822 extends AbstractMigration implements ContainerAwareI
|
|||
|
||||
$configTable->addColumn('action_mark_as_read', 'integer', [
|
||||
'default' => 0,
|
||||
'notnull' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class Client extends BaseClient
|
|||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="name", type="text", nullable=true)
|
||||
* @ORM\Column(name="name", type="text", nullable=false)
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ class Config
|
|||
/**
|
||||
* @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;
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ class Entry
|
|||
/**
|
||||
* @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"})
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue