Update Saqel Platform: 2026-09-02 07:52:23

This commit is contained in:
Hamza-Ayed
2026-09-02 07:52:24 +03:00
parent 739f934a26
commit 36939a50c1
8 changed files with 38 additions and 22 deletions
+6
View File
@@ -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");