// DBVersion returns ID of last applied migration
DBVersion returns ID of last applied migration
// DBVersion returns ID of last applied migration
func (m *DBMigrator) DBVersion() (uint, error) {
	lm, err := m.domain.Migration.Service.Last(m.ctx)
	err = api.AppErrorConv(err)
	if err != nil {
		if errors.Is(err, api.ErrNotFound) {
			return 0, nil
		}
		return 0, err
	}
	return lm.ID, nil
}
func ( m * DBMigrator ) DBVersion ( ) ( uint , error ) { lm , err := m . domain . Migration . Service . Last ( m . ctx ) err = api . AppErrorConv ( err ) if err != nil { if errors . Is ( err , api . ErrNotFound ) { return 0 , nil } return 0 , err } return lm . ID , nil }
DBVersion returns ID of last applied migration
DBVersion returns ID of last applied migration