From: Nicolas LÅ“uillet Date: Fri, 18 Nov 2016 14:55:16 +0000 (+0100) Subject: Replace http status with a string X-Git-Tag: 2.2.0~3^2~63^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e10e6ab34e62129d57fc69d7b9b69b08c20e6f5a;p=github%2Fwallabag%2Fwallabag.git Replace http status with a string I don't want to have 0 if we don't fetch status code, I think it's better to have an empty string, mainly for filters --- diff --git a/app/DoctrineMigrations/Version20161118134328.php b/app/DoctrineMigrations/Version20161118134328.php index b5413ddc..390e89ce 100644 --- a/app/DoctrineMigrations/Version20161118134328.php +++ b/app/DoctrineMigrations/Version20161118134328.php @@ -32,7 +32,7 @@ class Version20161118134328 extends AbstractMigration implements ContainerAwareI */ public function up(Schema $schema) { - $this->addSql('ALTER TABLE '.$this->getTable('entry').' ADD http_status INT DEFAULT 0'); + $this->addSql('ALTER TABLE '.$this->getTable('entry').' ADD http_status VARCHAR(3) DEFAULT NULL'); } /** diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index 31e594bf..3cf9ac1a 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php @@ -181,9 +181,9 @@ class Entry private $isPublic; /** - * @var int + * @var string * - * @ORM\Column(name="http_status", type="integer", nullable=true) + * @ORM\Column(name="http_status", type="text", nullable=true) * * @Groups({"entries_for_user", "export_all"}) */