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', [ $configTable->addColumn('action_mark_as_read', 'integer', [
'default' => 0, 'default' => 0,
'notnull' => false,
]); ]);
} }

View file

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

View file

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

View file

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