Commit f75f927
committed
🐛 Fix migration for SQLite compatibility in CI/CD
The migration was failing in CI/CD because SQLite doesn't support:
- ALTER COLUMN ... DROP NOT NULL syntax
- ON CONFLICT (postgres) vs INSERT OR IGNORE (sqlite)
Fixed by:
- Checking dialect.name and skipping ALTER COLUMN for SQLite
- Using INSERT OR IGNORE for SQLite, ON CONFLICT for PostgreSQL
- Using 1 instead of true for SQLite boolean values
This allows the migration to work in both production (PostgreSQL)
and testing (SQLite) environments.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent eefa8ab commit f75f927
1 file changed
Lines changed: 23 additions & 8 deletions
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
161 | 173 | | |
162 | 174 | | |
163 | 175 | | |
164 | 176 | | |
165 | 177 | | |
166 | 178 | | |
167 | 179 | | |
168 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
169 | 184 | | |
170 | 185 | | |
171 | 186 | | |
| |||
0 commit comments