Update Saqel Platform: 2026-09-02 07:52:23
This commit is contained in:
@@ -37,6 +37,12 @@ class VideoService
|
||||
Database::query("ALTER TABLE lessons ADD COLUMN video_uuid CHAR(36) NULL AFTER storage_type");
|
||||
}
|
||||
|
||||
$colsCurriculumKey = Database::select("SHOW COLUMNS FROM lessons LIKE 'curriculum_key'");
|
||||
if (empty($colsCurriculumKey)) {
|
||||
Database::query("ALTER TABLE lessons ADD COLUMN curriculum_key VARCHAR(500) NULL AFTER title");
|
||||
Database::query("ALTER TABLE lessons ADD INDEX idx_lessons_curriculum_key (curriculum_key)");
|
||||
}
|
||||
|
||||
$colsPath = Database::select("SHOW COLUMNS FROM lessons LIKE 'local_path'");
|
||||
if (empty($colsPath)) {
|
||||
Database::query("ALTER TABLE lessons ADD COLUMN local_path VARCHAR(500) NULL AFTER bunny_video_id");
|
||||
|
||||
Reference in New Issue
Block a user