Skip to content

Commit

Permalink
Adding session_rel_user.duration validation see BT#8205
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Apr 21, 2016
1 parent c6d0a9e commit ce3ab0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Migrations/Schema/V110/Version110.php
Expand Up @@ -77,7 +77,12 @@ public function up(Schema $schema)
}

$this->addSql("ALTER TABLE session ADD COLUMN duration int");
$this->addSql("ALTER TABLE session_rel_user ADD COLUMN duration int");

$sessionRelUser = $schema->getTable('session_rel_user');
if (!$sessionRelUser->hasColumn('duration')) {
$this->addSql("ALTER TABLE session_rel_user ADD COLUMN duration int");
}

$this->addSql("ALTER TABLE skill ADD COLUMN criteria text");
$this->addSql("ALTER TABLE gradebook_category ADD COLUMN generate_certificates TINYINT NOT NULL DEFAULT 0");
$this->addSql("ALTER TABLE track_e_access ADD COLUMN c_id int NOT NULL");
Expand Down

0 comments on commit ce3ab0c

Please sign in to comment.