Commit c72fed9f by Julien Jorry

HelloAsso : fix error in synchro 2

parent a5b65022
...@@ -76,7 +76,7 @@ class HelloAsso ...@@ -76,7 +76,7 @@ class HelloAsso
/** /**
* HelloAsso State of data return. * HelloAsso State of data return.
* *
* @ORM\Column(type="string", length=255) * @ORM\Column(type="string", length=255, nullable=true)
*/ */
private $state; private $state;
...@@ -282,7 +282,7 @@ class HelloAsso ...@@ -282,7 +282,7 @@ class HelloAsso
return $this->state; return $this->state;
} }
public function setState(string $state): self public function setState(?string $state): self
{ {
$this->state = $state; $this->state = $state;
...@@ -294,7 +294,7 @@ class HelloAsso ...@@ -294,7 +294,7 @@ class HelloAsso
return $this->statePayment; return $this->statePayment;
} }
public function setStatePayment(string $statePayment): self public function setStatePayment(?string $statePayment): self
{ {
$this->statePayment = $statePayment; $this->statePayment = $statePayment;
......
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220420122541 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE helloasso CHANGE state state VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE helloasso CHANGE state state VARCHAR(255) CHARACTER SET utf8mb3 NOT NULL COLLATE `utf8mb3_general_ci`');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment