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