summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorDevian Leong <devianleong@gmail.com>2022-03-22 09:13:10 +0800
committerDevian Leong <devianleong@gmail.com>2022-03-22 09:13:10 +0800
commit54d511f811ec3881bee4b6685e6a10b79ec3b13a (patch)
treedb5fda54c3993b18fe9aa1316267467de6460b6e /database
parentb415779ef32f8fead683eac2f558e6b162bc7dff (diff)
Added resource morphs nullable. This will give the flexibility for developer to embed to model or simply upload and store.3.0.6
Diffstat (limited to 'database')
-rw-r--r--database/migrations/create_scorm_tables.php.stub2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/migrations/create_scorm_tables.php.stub b/database/migrations/create_scorm_tables.php.stub
index cc9dc38..496aca4 100644
--- a/database/migrations/create_scorm_tables.php.stub
+++ b/database/migrations/create_scorm_tables.php.stub
@@ -22,7 +22,7 @@ class CreateScormTables extends Migration
// scorm_model
Schema::create($tableNames['scorm_table'], function (Blueprint $table) {
$table->bigIncrements('id');
- $table->morphs('resource');
+ $table->nullableMorphs('resource');
$table->string('title');
$table->string('origin_file')->nullable();
$table->string('version');