fix: revert V27 checksum + add V35 for generated_reports timestamps
Deploy to TrueNAS / deploy (push) Successful in 27s
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:
@@ -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);
|
||||
|
||||
+3
@@ -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();
|
||||
Reference in New Issue
Block a user