Skip to content

Commit

Permalink
Fix id_coach in session table - refs #8200
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolored committed May 20, 2016
1 parent 22bf412 commit 2cf9c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Migrations/Schema/V110/Version110.php
Expand Up @@ -24,6 +24,7 @@ public function preUp(Schema $schema)
$this->addSql("ALTER TABLE session_rel_course ENGINE=InnoDB");
$this->addSql("ALTER TABLE session_rel_course_rel_user ENGINE=InnoDB");
$this->addSql("ALTER TABLE session_rel_user ENGINE=InnoDB");
$this->addSql("UPDATE session SET session.id_coach = 1 WHERE id_coach NOT IN ( SELECT user_id FROM user)");
}

/**
Expand Down

0 comments on commit 2cf9c3e

Please sign in to comment.