Copy copies all provided list migrations into the current one.
(list MigrationsList)
| 30 | |
| 31 | // Copy copies all provided list migrations into the current one. |
| 32 | func (l *MigrationsList) Copy(list MigrationsList) { |
| 33 | for _, item := range list.Items() { |
| 34 | l.Register(item.Up, item.Down, item.File) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // Add adds adds an existing migration definition to the list. |
| 39 | // |