Fix query during upgrade

1.10.x
Julio Montoya 9 years ago
parent d3b5c0679b
commit db26afa609
  1. 5
      app/Migrations/Schema/V110/Version110.php

@ -73,6 +73,11 @@ class Version110 extends AbstractMigrationChamilo
if (!$table->hasColumn('session_id')) {
$this->addSql("ALTER TABLE track_e_default ADD COLUMN session_id int NOT NULL");
}
if (!$table->hasColumn('c_id')) {
$this->addSql("ALTER TABLE track_e_default ADD COLUMN c_id int NOT NULL");
}
$this->addSql("ALTER TABLE track_e_access ADD COLUMN user_ip varchar(39) NOT NULL default ''");
$this->addSql("ALTER TABLE track_e_exercices ADD COLUMN user_ip varchar(39) NOT NULL default ''");
$this->addSql("ALTER TABLE track_e_course_access ADD COLUMN user_ip varchar(39) NOT NULL default ''");

Loading…
Cancel
Save