浏览代码

Add table renaming.

Julio Montoya 9 年之前
父节点
当前提交
3c38c4451e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 0 2
      app/Migrations/Schema/V110/Version110.php
  2. 2 0
      app/Migrations/Schema/V110/Version20150803171220.php

+ 0 - 2
app/Migrations/Schema/V110/Version110.php

@@ -467,8 +467,6 @@ class Version110 extends AbstractMigrationChamilo
         $this->addSql("INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES ('Føroyskt', 'faroese', 'fo', 'faroese', 0), ('Tagalog', 'tagalog', 'tl', 'tagalog',1), ('Tibetan', 'tibetan', 'bo', 'tibetan', 0), ('isiXhosa', 'xhosa', 'xh', 'xhosa', 0)");
         $this->addSql("DELETE FROM settings_options WHERE variable = 'show_glossary_in_extra_tools'");
 
-        //$schema->renameTable('track_e_exercices', 'track_e_exercises');
-
         $this->addSql("UPDATE c_student_publication SET date_of_qualification = NULL WHERE date_of_qualification = '0000-00-00 00:00:00'");
         $this->addSql("UPDATE c_student_publication SET sent_date = NULL WHERE sent_date = '0000-00-00 00:00:00'");
 

+ 2 - 0
app/Migrations/Schema/V110/Version20150803171220.php

@@ -21,6 +21,8 @@ class Version20150803171220 extends AbstractMigrationChamilo
         $this->addSql('UPDATE user SET username_canonical = username');
         $this->addSql('ALTER TABLE user ADD confirmation_token VARCHAR(255) NULL');
         $this->addSql('ALTER TABLE user ADD password_requested_at DATETIME DEFAULT NULL');
+
+        $schema->renameTable('track_e_exercices', 'track_e_exercises');
     }
 
     /**