Commit ac1ea41
committed
fix(deploy): use with_repo for schema drop to avoid pool disconnect
DROP SCHEMA CASCADE kills all active pool connections. Use
Ecto.Migrator.with_repo to get a managed connection for the
drop/recreate/migrate sequence, then start the full app only
for seeding.1 parent 281484b commit ac1ea41
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | | - | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | | - | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
0 commit comments