Migration: Add table user modification earlier in the migration process - refs BT#20864

pull/5919/head
NicoDucou 2 weeks ago
parent d933f12dde
commit 85314a083e
  1. 4
      src/CoreBundle/Migrations/Schema/V200/Version20170626122900.php

@ -104,6 +104,10 @@ class Version20170626122900 extends AbstractMigrationChamilo
$this->addSql('ALTER TABLE user CHANGE confirmation_token confirmation_token VARCHAR(255) DEFAULT NULL');
}
if ($table->hasColumn('enabled')) {
$this->addSql('ALTER TABLE user DROP enabled');
}
$this->addSql('ALTER TABLE user CHANGE username_canonical username_canonical VARCHAR(180) NOT NULL');
$this->addSql('ALTER TABLE user CHANGE lastname lastname VARCHAR(64) DEFAULT NULL');
$this->addSql('ALTER TABLE user CHANGE firstname firstname VARCHAR(64) DEFAULT NULL');

Loading…
Cancel
Save