()
| 85 | } |
| 86 | |
| 87 | func registerPluginsMigrationScripts() { |
| 88 | // pull migration scripts from plugins to migrator |
| 89 | for _, pluginInst := range plugin.AllPlugins() { |
| 90 | if migratable, ok := pluginInst.(plugin.PluginMigration); ok { |
| 91 | logger.Info("register plugin:%s's migrations scripts", pluginInst.Name()) |
| 92 | migrator.Register(migratable.MigrationScripts(), pluginInst.Name()) |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | func InitExecuteMigration() { |
| 98 | // check if there are pending migration |
no test coverage detected