diff options
Diffstat (limited to 'database')
-rw-r--r-- | database/migrations/create_scorm_tables.php.stub | 14 |
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.'); |