We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9291e1 commit 174ba72Copy full SHA for 174ba72
app/Migrations/Schema/V110/Version110.php
@@ -24,7 +24,7 @@ public function preUp(Schema $schema)
24
$this->addSql("ALTER TABLE session_rel_course ENGINE=InnoDB");
25
$this->addSql("ALTER TABLE session_rel_course_rel_user ENGINE=InnoDB");
26
$this->addSql("ALTER TABLE session_rel_user ENGINE=InnoDB");
27
- $this->addSql("UPDATE session SET session.id_coach = 1 WHERE id_coach NOT IN ( SELECT user_id FROM user)");
+ $this->addSql("UPDATE session SET session.id_coach = (SELECT user_id FROM admin LIMIT 1) WHERE id_coach NOT IN (SELECT user_id FROM user)");
28
}
29
30
/**
0 commit comments