summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordevian_peoplelogy <devianleong@gmail.com>2022-09-28 16:52:30 +0800
committerdevian_peoplelogy <devianleong@gmail.com>2022-09-28 16:52:30 +0800
commitda9e202b77c4094392ef7742f49aa3a13024c527 (patch)
treeb19fb1711d9054814271f86893e8cc6357491d6a
parent3f6b6678ca405142bf35279abda8b83966bfb14e (diff)
Update
-rw-r--r--README.md4
-rw-r--r--database/migrations/create_scorm_tables.php.stub1
-rw-r--r--src/Model/ScormModel.php1
3 files changed, 6 insertions, 0 deletions
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',