Repository navigation
Commit fda1973
fix: add missing velocity_24h and ple_delta_24h columns to campaigns table
The model includes Velocity24h and PleDelta24h fields but the database
was missing these columns, causing SQLSTATE 42703 errors when querying
campaigns.
Added idempotent migration to ensure both columns exist with proper
defaults (0) when the backend starts.
Related to deployment aa9ad5e - columns were added to model but not
migrated to dev database.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent aa9ad5e commit fda1973
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
97 | 122 | | |
98 | 123 | | |
99 | 124 | | |
| |||
0 commit comments