Revert "Fix issue setting PRIMARY KEY to possible NULL in migration from 1.9 to 1.10 - refs CT#8200"

This reverts commit 70c7ef3799.
remotes/angel/1.11.x
Angel Fernando Quiroz Campos 9 years ago
parent 546bc06c8e
commit 1a49884577
  1. 2
      app/Migrations/Schema/V110/Version110.php

@ -123,8 +123,8 @@ class Version110 extends AbstractMigrationChamilo
$this->addSql("ALTER TABLE track_e_online CHANGE COLUMN login_ip user_ip varchar(39) NOT NULL DEFAULT ''");
$this->addSql("ALTER TABLE track_e_login CHANGE COLUMN login_ip user_ip varchar(39) NOT NULL DEFAULT ''");
$this->addSql("ALTER TABLE user DROP PRIMARY KEY");
$this->addSql("ALTER TABLE user MODIFY COLUMN user_id int unsigned DEFAULT NULL");
$this->addSql("ALTER TABLE user DROP PRIMARY KEY");
$this->addSql("ALTER TABLE user ADD COLUMN id INT DEFAULT NULL");
$this->addSql("UPDATE user SET id = user_id");
$this->addSql("ALTER TABLE user MODIFY COLUMN id INT NOT NULL PRIMARY KEY AUTO_INCREMENT AFTER user_id");

Loading…
Cancel
Save