mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove NOT NULL for User::usernamecanonical
This commit is contained in:
parent
9b38e486df
commit
b4e78a948b
@ -44,7 +44,8 @@ class User implements AdvancedUserInterface {
|
||||
* @ORM\Column(
|
||||
* type="string",
|
||||
* length=80,
|
||||
* unique=true)
|
||||
* unique=true,
|
||||
* nullable=true)
|
||||
*/
|
||||
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 mainScope_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_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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user