Skip to content

Commit

Permalink
Revert "Fix issue setting PRIMARY KEY to possible NULL in migration f…
Browse files Browse the repository at this point in the history
…rom 1.9 to 1.10 - refs CT#8200"

This reverts commit 70c7ef3.
  • Loading branch information
AngelFQC committed May 11, 2016
1 parent 3b3cbc9 commit e79d2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Migrations/Schema/V110/Version110.php
Expand Up @@ -123,8 +123,8 @@ public function up(Schema $schema)
$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");
Expand Down

0 comments on commit e79d2fc

Please sign in to comment.