Be consistent between migration & schema definition

This commit is contained in:
Jeremy Benoist 2016-12-19 14:24:19 +01:00
parent 6514f0ed37
commit 3ef75cc4e3
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
4 changed files with 4 additions and 3 deletions

View File

@ -35,6 +35,7 @@ class Version20161106113822 extends AbstractMigration implements ContainerAwareI
$configTable->addColumn('action_mark_as_read', 'integer', [
'default' => 0,
'notnull' => false,
]);
}

View File

@ -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;

View File

@ -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;

View File

@ -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"})
*/