Commit 425ebe3
committed
feat(db): add versioning and lastUpdatedBy to env vars
Add a version integer (default 1) and a lastUpdatedBy JSON field to the
EnvironmentVariableValue model. Include a migration that alters the
EnvironmentVariableValue table to add the version column (NOT NULL,
default 1) and the lastUpdatedBy JSONB column.
This enables simple optimistic versioning and stores metadata about the
actor that last updated an environment variable, improving concurrency
control and auditability.1 parent ca5a494 commit 425ebe3
File tree
2 files changed
+6
-0
lines changed- internal-packages/database/prisma
- migrations/20260126175159_add_environment_variable_versioning
2 files changed
+6
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1716 | 1719 | | |
1717 | 1720 | | |
1718 | 1721 | | |
| |||
0 commit comments