Open diegobernardes opened 6 years ago
Hi, could you explain what you mean by this?
Yes, sorry, clicked in the create by mistake, 1 sec, writing the message.
I like the idea of hooks and I don't mind that they might not be available through the CLI.
If we do add them it's probably best to scan for them when using the CLI and refuse to operate when a hook is detected. Just to make sure things either happen correctly or not at all.
There's a real danger for abuse though, so they should be used sparingly.
Today the package already know some
special comments
, I'm proposing to add hook points as special comments where plain Go code could execute along the migration. This is very useful during transformations caused by the migration.Using the standalone cli, don't know how this could work, but, using the library is kinda easy: