feat: owner review 2 phase 5a: workspace and projects with a local home (#14)
CI / Build and test (push) Successful in 9m43s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 27s
CI / PostgreSQL 16 integration (push) Failing after 8m41s
CI / PostgreSQL 17 integration (push) Successful in 12m37s
CI / Docker image (push) Successful in 56s
Release / Build, test and publish (push) Successful in 14m59s
Release / Server image (push) Successful in 1m51s
CI / Build and test (push) Successful in 9m43s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 27s
CI / PostgreSQL 16 integration (push) Failing after 8m41s
CI / PostgreSQL 17 integration (push) Successful in 12m37s
CI / Docker image (push) Successful in 56s
Release / Build, test and publish (push) Successful in 14m59s
Release / Server image (push) Successful in 1m51s
Edit opens a sequence as a project of a workspace folder outside the library. Projects have linear version histories kept as sidecars in .chronos/projects/, Main mirrors the sequence's settings, and sync merges setting by setting. Migration 0009, JobKind.WorkspaceCopy = 20, Settings › Workspace, and 241 new strings in 38 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #14.
This commit is contained in:
1 parent
efa87f68ce
commit
9b24cf74fc
370 files changed
+29237
-287
No files matched your search
@@ -0,0 +1,46 @@
|
||||
-- Projects of sequences (owner review 2, R8): named sets of render settings ("4K landscape", "Vertical social"), each
|
||||
-- with a linear history of immutable versions. The sidecars in <sequence>/.chronos/projects/ are the truth; these rows
|
||||
-- are derived and rebuilt from them. Every sequence has one Main project, whose head is mirrored into
|
||||
-- sequences.settings_json: mirrored_version_id and mirrored_settings_version are the version and the settings version of
|
||||
-- the last mirror, so settings another path wrote are caught up as an "external" version, and a mirror a crash cut short
|
||||
-- is completed. A version's settings are text, never re-encoded, so the bytes its content hash covers stay exact.
|
||||
-- Renders remember the project version they rendered. Mirrors postgres/0009_projects.sql.
|
||||
|
||||
CREATE TABLE projects (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
sequence_id TEXT NOT NULL REFERENCES sequences (id) ON DELETE CASCADE,
|
||||
name TEXT NOT NULL,
|
||||
is_main INTEGER NOT NULL DEFAULT 0,
|
||||
head_version_id TEXT,
|
||||
head_number INTEGER NOT NULL DEFAULT 0,
|
||||
mirrored_settings_version INTEGER,
|
||||
mirrored_version_id TEXT,
|
||||
created_by TEXT,
|
||||
created_at TEXT NOT NULL,
|
||||
updated_at TEXT NOT NULL,
|
||||
deleted_at TEXT
|
||||
);
|
||||
CREATE UNIQUE INDEX ux_projects_name ON projects (sequence_id, name) WHERE deleted_at IS NULL;
|
||||
CREATE UNIQUE INDEX ux_projects_main ON projects (sequence_id) WHERE is_main = 1 AND deleted_at IS NULL;
|
||||
|
||||
CREATE TABLE project_versions (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
project_id TEXT NOT NULL REFERENCES projects (id) ON DELETE CASCADE,
|
||||
parent_id TEXT,
|
||||
number INTEGER NOT NULL,
|
||||
kind TEXT NOT NULL,
|
||||
author TEXT,
|
||||
client_name TEXT,
|
||||
note TEXT,
|
||||
settings_json TEXT NOT NULL,
|
||||
content_hash TEXT NOT NULL,
|
||||
settings_format INTEGER NOT NULL,
|
||||
frames_version INTEGER NOT NULL,
|
||||
restored_from TEXT,
|
||||
created_at TEXT NOT NULL,
|
||||
stored_at TEXT NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX ux_project_versions_number ON project_versions (project_id, number);
|
||||
|
||||
ALTER TABLE renders ADD COLUMN project_id TEXT;
|
||||
ALTER TABLE renders ADD COLUMN project_version_id TEXT;
|
||||
Reference in new issue
Block a user