summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authordevianl2 <devianleong@gmail.com>2022-02-11 12:05:11 +0800
committerGitHub <noreply@github.com>2022-02-11 12:05:11 +0800
commit359e2588a4962f51c0d5cbdd2823530a15defee0 (patch)
treeb9bc389a9734ccc9d496353205a7d859bfa7bb48 /database
parent9a3d5c62ac377bfcb9e31f98275636548c4d65ea (diff)
Revert "Improve SCORM disk storage handler"
Diffstat (limited to 'database')
-rw-r--r--database/migrations/create_scorm_tables.php.stub14
1 files changed, 13 insertions, 1 deletions
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.');