Remove inconsistencies about non-existing sessions

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 764618216a
commit 50e93dd50b
  1. 5
      app/Migrations/Schema/V110/Version20150603181728.php

@ -55,6 +55,11 @@ class Version20150603181728 extends AbstractMigrationChamilo
SELECT id FROM user
)
");
$this->addSql("
UPDATE c_item_property SET session_id = NULL WHERE session_id NOT IN (
SELECT id FROM session
)
");
// Remove inconsistencies about non-existing courses
$this->addSql("DELETE FROM c_item_property WHERE c_id = 0");
// Remove inconsistencies about non-existing users

Loading…
Cancel
Save