feat(deploy): V4 migration — add created_by to deployments

This commit is contained in:
hsiegeln
2026-04-23 11:44:05 +02:00
parent e558494f8d
commit 35748ea7a1
2 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
-- V4: add created_by column to deployments for audit trail
-- Captures which user initiated a deployment. Nullable for backwards compatibility;
-- pre-V4 historical deployments will have NULL.
ALTER TABLE deployments
ADD COLUMN created_by TEXT REFERENCES users(user_id);
CREATE INDEX idx_deployments_created_by ON deployments (created_by);