// checkMainFile checks if main fille exists
checkMainFile checks if main fille exists
// checkMainFile checks if main fille exists
func (m *DBMigratorTool) checkMainFile() (err error) {
	filePath := filepath.Join(m.config.Dir, MainFileName)
	if _, err := os.Stat(filePath); err != nil {
		err = m.createMainFile(filePath)
		if err != nil {
			return err
		}
	}
	return nil
}
func ( m * DBMigratorTool ) checkMainFile ( ) ( err error ) { filePath := filepath . Join ( m . config . Dir , MainFileName ) if _ , err := os . Stat ( filePath ) ; err != nil { err = m . createMainFile ( filePath ) if err != nil { return err } } return nil }
checkMainFile checks if main fille exists
checkMainFile checks if main fille exists