Fix ORM patch

This commit is contained in:
Romain Neutron
2013-10-15 14:39:58 +02:00
parent 053de5df8b
commit 3f6ce4991e

View File

@@ -49,6 +49,11 @@ class patch_3908 implements patchInterface
*/
public function apply(base $appbox, Application $app)
{
$sql = 'DELETE FROM Tasks';
$stmt = $app['phraseanet.appbox']->get_connection()->prepare($sql);
$stmt->execute();
$stmt->closeCursor();
$sql = 'SELECT task_id, active, crashed, name, class, settings FROM task2';
$stmt = $appbox->get_connection()->prepare($sql);
$stmt->execute();