11 ms·
This does not work (easily) when other tables have "foreign key" constraints to the table. You need to manually recreate them.
by silvestrov 2y ago
This does not work (easily) when other tables have "foreign key" constraints to the table. You need to manually recreate them.
- simonw 2y agoYeah, my solution doesn't automatically handle that (yet). That's why it provides a --sql option - if it doesn't entirely handle your particular case you can instead get it to generate SQL for you without executing it, so you can make modifications you need before running it.