Commit cfd7d6e
00_uninstall.sql (added in #431 for standalone uninstall) was placed in
install/ and picked up by the file glob, making it the first script
executed on every install — including upgrades. This silently dropped
the PerformanceMonitor database before recreating it empty.
Four fixes:
1. Exclude 00_* from the install file list (both CLI and GUI), matching
the existing 97_/99_ exclusion pattern.
2. Abort installation when any upgrade script fails instead of falling
through to the full install path over a partially-upgraded database.
New CLI exit code 8 (UpgradesFailed).
3. Version detection fallback: when the database exists but
installation_history has no SUCCESS rows (prior GUI bug), return
"1.0.0" so all idempotent upgrades are attempted rather than
treating it as a fresh install.
4. Increase upgrade script timeout from 5 minutes to 1 hour for data
migrations on large tables (compress_query_stats on 240GB+ DBs).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3df331a commit cfd7d6e
3 files changed
Lines changed: 51 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
523 | 525 | | |
524 | 526 | | |
525 | 527 | | |
526 | | - | |
527 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
| |||
699 | 702 | | |
700 | 703 | | |
701 | 704 | | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
702 | 720 | | |
703 | 721 | | |
704 | 722 | | |
| |||
1332 | 1350 | | |
1333 | 1351 | | |
1334 | 1352 | | |
1335 | | - | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1336 | 1362 | | |
1337 | 1363 | | |
1338 | 1364 | | |
| |||
1480 | 1506 | | |
1481 | 1507 | | |
1482 | 1508 | | |
1483 | | - | |
| 1509 | + | |
1484 | 1510 | | |
1485 | 1511 | | |
1486 | 1512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
411 | 421 | | |
412 | 422 | | |
413 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| |||
1113 | 1114 | | |
1114 | 1115 | | |
1115 | 1116 | | |
1116 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1117 | 1124 | | |
1118 | 1125 | | |
1119 | 1126 | | |
| |||
1272 | 1279 | | |
1273 | 1280 | | |
1274 | 1281 | | |
1275 | | - | |
| 1282 | + | |
1276 | 1283 | | |
1277 | 1284 | | |
1278 | 1285 | | |
| |||
0 commit comments