fix: revert V27 checksum + add V35 for generated_reports timestamps
Deploy to TrueNAS / deploy (push) Successful in 27s

V27 was modified after it was applied on production, causing a Flyway
checksum mismatch. Reverted V27 to original and moved the created_at/
updated_at columns to a new V35 migration.
This commit is contained in:
Patrick Plate
2026-06-17 21:45:09 +02:00
parent fa567c1c3f
commit 90cdac7468
2 changed files with 4 additions and 3 deletions
@@ -10,9 +10,7 @@ CREATE TABLE generated_reports (
storage_path VARCHAR(500),
parameters JSONB,
generated_by UUID NOT NULL REFERENCES users(id),
generated_at TIMESTAMP DEFAULT NOW(),
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
generated_at TIMESTAMP DEFAULT NOW()
);
CREATE INDEX idx_generated_reports_tenant ON generated_reports(tenant_id);
@@ -0,0 +1,3 @@
-- Add created_at and updated_at to generated_reports (split from V27 to avoid checksum mismatch)
ALTER TABLE generated_reports ADD COLUMN IF NOT EXISTS created_at TIMESTAMP DEFAULT NOW();
ALTER TABLE generated_reports ADD COLUMN IF NOT EXISTS updated_at TIMESTAMP DEFAULT NOW();