源码快照 @ 2026-09-01 (source-only, 剔除非源码素材)
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package workspace
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
// applyWorkspaceIssuesV13 records the per-task parallel opt-in from the Tutti
|
||||
// Mode plan review. Sequential stays the default: false means the task waits
|
||||
// for its predecessors, true lets it run alongside other ready tasks.
|
||||
func (s *SQLiteStore) applyWorkspaceIssuesV13(ctx context.Context) error {
|
||||
applied, err := s.hasMigration(ctx, schemaMigrationWorkspaceIssuesV13)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if applied {
|
||||
return nil
|
||||
}
|
||||
hasColumn, err := s.hasColumn(ctx, "workspace_issue_tasks", "parallelizable")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !hasColumn {
|
||||
if _, err := s.writeDB.ExecContext(ctx, "ALTER TABLE workspace_issue_tasks ADD COLUMN parallelizable INTEGER NOT NULL DEFAULT 0;"); err != nil {
|
||||
return fmt.Errorf("add workspace_issue_tasks.parallelizable: %w", err)
|
||||
}
|
||||
}
|
||||
if _, err := s.writeDB.ExecContext(ctx, `
|
||||
INSERT INTO tuttid_schema_migrations (id, applied_at_unix_ms)
|
||||
VALUES (?, ?);
|
||||
`, schemaMigrationWorkspaceIssuesV13, unixMs(time.Now().UTC())); err != nil {
|
||||
return fmt.Errorf("record workspace issue task parallelizable migration: %w", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user