// CoreMigration converts to core migration
CoreMigration converts to core migration
// CoreMigration converts to core migration
func (m Migration) CoreMigration() *migration.Migration {
	var up, down interface{}
	up		= m.Up
	down	= m.Down
	if act, ok := (m.Up).(MigrationFunc); ok {
		up = (migration.Func)(act)
	}
	if act, ok := (m.Down).(MigrationFunc); ok {
		down = (migration.Func)(act)
	}
	return &migration.Migration{
		ID:   m.ID,
		Name: m.Name,
		Up:   up,
		Down: down,
	}
}
func ( m Migration ) CoreMigration ( ) * migration . Migration { var up , down interface { } up = m . Up down = m . Down if act , ok := ( m . Up ) . ( MigrationFunc ) ; ok { up = ( migration . Func ) ( act ) } if act , ok := ( m . Down ) . ( MigrationFunc ) ; ok { down = ( migration . Func ) ( act ) } return & migration . Migration { ID : m . ID , Name : m . Name , Up : up , Down : down , } }
CoreMigration converts to core migration
CoreMigration converts to core migration