mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
remove NOT NULL for User::usernamecanonical
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user