From da9e202b77c4094392ef7742f49aa3a13024c527 Mon Sep 17 00:00:00 2001 From: devian_peoplelogy <devianleong@gmail.com> Date: Wed, 28 Sep 2022 16:52:30 +0800 Subject: Update --- README.md | 4 ++++ database/migrations/create_scorm_tables.php.stub | 1 + src/Model/ScormModel.php | 1 + 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 7434a5f..6c1d241 100644 --- a/README.md +++ b/README.md @@ -133,3 +133,7 @@ Update your Scorm table: - Change hash_name to title - Remove origin_file_mime field +***Upgrade from version 3 to 4:*** +Update your Scorm table: +- Add identifier (varchar 191) + diff --git a/database/migrations/create_scorm_tables.php.stub b/database/migrations/create_scorm_tables.php.stub index 1fa78f6..d60328c 100644 --- a/database/migrations/create_scorm_tables.php.stub +++ b/database/migrations/create_scorm_tables.php.stub @@ -28,6 +28,7 @@ class CreateScormTables extends Migration $table->string('version'); $table->double('ratio')->nullable(); $table->string('uuid'); + $table->string('identifier'); $table->string('entry_url')->nullable(); $table->timestamps(); }); diff --git a/src/Model/ScormModel.php b/src/Model/ScormModel.php index e7c5a16..c9992f3 100644 --- a/src/Model/ScormModel.php +++ b/src/Model/ScormModel.php @@ -30,6 +30,7 @@ class ScormModel extends Model 'version', 'ratio', 'uuid', + 'identifier', 'entry_url', 'created_at', 'updated_at', -- cgit v1.2.3