Commit f0cda41
Unify publisher plugin database setup and migration paths
- Make Drizzle migrations the single source of truth, replacing dual
raw DDL + Drizzle paths in setup.js
- Auto-run migrations on plugin startup (zero manual steps for updates)
- Add bootstrap guard for databases created by old setup.js (seeds
__drizzle_migrations journal so Drizzle can take over)
- Fix migration 0001 FK incompatibility: change PKs from serial
(BIGINT UNSIGNED) to int AUTO_INCREMENT to match int FK columns
- Add 0002 migration for error_details column and private_key rename
- Fix migration folder path resolution for tsup flat bundle output
- Improve setup.js: hide password input, fix Mode 1 config overwrite,
replace raw DDL with migrate(), update wording
- Add structured error details to publishing attempts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 480d08f commit f0cda41
18 files changed
Lines changed: 4064 additions & 1611 deletions
File tree
- packages/plugin-dkg-publisher
- src
- database
- migrations
- meta
- services
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments