From 70554fe65acf2132b5bd0fcef2a32230ef2c2bd6 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 25 Oct 2018 15:24:46 +0200 Subject: [PATCH] Minor - add exit and warning --- tests/scripts/migrate_item_property.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/scripts/migrate_item_property.php b/tests/scripts/migrate_item_property.php index c2e8564804..d78edd824d 100644 --- a/tests/scripts/migrate_item_property.php +++ b/tests/scripts/migrate_item_property.php @@ -10,9 +10,17 @@ use Chamilo\CoreBundle\Entity\Resource\ResourceRight; use Chamilo\MediaBundle\Entity\Media; use Chamilo\CoreBundle\Security\Authorization\Voter\ResourceNodeVoter; -echo 'first run:
'; +/** + * Migrate content from c_item_property and c_document tables to the new "Resource" system. + * + */ + +echo 'First check if table "classification__category" has a default category; if not then run:
'; echo 'bin/console sonata:media:fix-media-context'; -//exit; +echo 'change course id in the query'; +exit; +// For tests to clean all resource stuff: +// require_once __DIR__.'/../../main/inc/global.inc.php';