From 359e2588a4962f51c0d5cbdd2823530a15defee0 Mon Sep 17 00:00:00 2001 From: devianl2 Date: Fri, 11 Feb 2022 12:05:11 +0800 Subject: Revert "Improve SCORM disk storage handler" --- database/migrations/create_scorm_tables.php.stub | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'database/migrations') diff --git a/database/migrations/create_scorm_tables.php.stub b/database/migrations/create_scorm_tables.php.stub index 6a136b3..506e9cb 100644 --- a/database/migrations/create_scorm_tables.php.stub +++ b/database/migrations/create_scorm_tables.php.stub @@ -97,7 +97,19 @@ class CreateScormTables extends Migration */ public function down() { - $tableNames = config('scorm.table_names'); + $tableNames = config('scorm_sco_tracking_table'); + + if (empty($tableNames)) { + throw new \Exception('Error: Table not found.'); + } + + $tableNames = config('scorm_sco_table'); + + if (empty($tableNames)) { + throw new \Exception('Error: Table not found.'); + } + + $tableNames = config('scorm_table'); if (empty($tableNames)) { throw new \Exception('Error: Table not found.'); -- cgit v1.2.3