From 54d511f811ec3881bee4b6685e6a10b79ec3b13a Mon Sep 17 00:00:00 2001
From: Devian Leong <devianleong@gmail.com>
Date: Tue, 22 Mar 2022 09:13:10 +0800
Subject: Added resource morphs nullable. This will give the flexibility for
 developer to embed to model or simply upload and store.

---
 database/migrations/create_scorm_tables.php.stub | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'database')

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');
-- 
cgit v1.2.3