mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 00:24:59 +00:00
remove NOT NULL for User::usernamecanonical
This commit is contained in:
@@ -44,7 +44,8 @@ class User implements AdvancedUserInterface {
|
|||||||
* @ORM\Column(
|
* @ORM\Column(
|
||||||
* type="string",
|
* type="string",
|
||||||
* length=80,
|
* length=80,
|
||||||
* unique=true)
|
* unique=true,
|
||||||
|
* nullable=true)
|
||||||
*/
|
*/
|
||||||
private $usernameCanonical;
|
private $usernameCanonical;
|
||||||
|
|
||||||
|
@@ -28,7 +28,6 @@ final class Version20210903144853 extends AbstractMigration
|
|||||||
$this->addSql('ALTER TABLE users ADD mainCenter_id INT DEFAULT NULL');
|
$this->addSql('ALTER TABLE users ADD mainCenter_id INT DEFAULT NULL');
|
||||||
$this->addSql('ALTER TABLE users ADD mainScope_id INT DEFAULT NULL');
|
$this->addSql('ALTER TABLE users ADD mainScope_id INT DEFAULT NULL');
|
||||||
$this->addSql('ALTER TABLE users ADD userJob_id INT DEFAULT NULL');
|
$this->addSql('ALTER TABLE users ADD userJob_id INT DEFAULT NULL');
|
||||||
$this->addSql('ALTER TABLE users ALTER usernamecanonical SET NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E92C2125C1 FOREIGN KEY (mainCenter_id) REFERENCES centers (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E92C2125C1 FOREIGN KEY (mainCenter_id) REFERENCES centers (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||||
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E9115E73F3 FOREIGN KEY (mainScope_id) REFERENCES scopes (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E9115E73F3 FOREIGN KEY (mainScope_id) REFERENCES scopes (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||||
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E964B65C5B FOREIGN KEY (userJob_id) REFERENCES chill_main_user_job (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E964B65C5B FOREIGN KEY (userJob_id) REFERENCES chill_main_user_job (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||||
|
Reference in New Issue
Block a user