feat: add autonomous YouTube resource recovery and adaptive GGC
Co-authored-by: GPT-6 <gpt-6@openai.com>
This commit is contained in:
1 parent
8826c591dc
commit
b4e1e1e9ca
43 files changed
+5163
-93
No files matched your search
@@ -114,7 +114,7 @@ func migrate(db *sql.DB) error {
|
||||
if err = conn.QueryRowContext(ctx, "PRAGMA user_version").Scan(&version); err != nil {
|
||||
return err
|
||||
}
|
||||
if version > 5 {
|
||||
if version > 7 {
|
||||
return fmt.Errorf("unsupported database schema version %d", version)
|
||||
}
|
||||
if version == 0 {
|
||||
@@ -241,6 +241,16 @@ PRAGMA user_version = 1;`)
|
||||
return err
|
||||
}
|
||||
}
|
||||
if version < 6 {
|
||||
if err := migrateAssetCandidates(ctx, conn); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if version < 7 {
|
||||
if _, err := conn.ExecContext(ctx, googlevideoQualificationSchema); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
_, err = conn.ExecContext(ctx, "COMMIT")
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user