me/sql.py
def migrations(self):
        """Grab all versioned migrations from the migration directory, verify
        no duplicates and return list.
        """
        files = os.listdir(self.migrations_dir)
        migrations = []
        for _file in files:
            try:
                version = get_sql_version(_file)
            except ValueError:
                # Skip invlaid sql migration version
                continue
            migrations.append(Migration(_file, version))
        counts = collections.Counter(m.version for m in migrations).iteritems()
        dupes = sorted(v for v, count in counts if count > 1)
        if dupes:
            msg = 'Duplicate migration detected: versions {}'.format(dupes)
            raise SystemExit(msg)
        return migrations
Grab all versioned migrations from the migration directory, verify
        no duplicates and return list.
        
Grab all versioned migrations from the migration directory, verify
no duplicates and return list.
Grab all versioned migrations from the migration directory verify no duplicates and return list .
def migrations(self):
        files = os.listdir(self.migrations_dir)
        migrations = []
        for _file in files:
            try:
                version = get_sql_version(_file)
            except ValueError:
                continue
            migrations.append(Migration(_file, version))
        counts = collections.Counter(m.version for m in migrations).iteritems()
        dupes = sorted(v for v, count in counts if count > 1)
        if dupes:
            msg = 'Duplicate migration detected: versions {}'.format(dupes)
            raise SystemExit(msg)
        return migrations
def migrations ( self ) : files = os . listdir ( self . migrations_dir ) migrations = [ ] for _file in files : try : version = get_sql_version ( _file ) except ValueError : continue migrations . append ( Migration ( _file , version ) ) counts = collections . Counter ( m . version for m in migrations ) . iteritems ( ) dupes = sorted ( v for v , count in counts if count > 1 ) if dupes : msg = 'Duplicate migration detected: versions {}' . format ( dupes ) raise SystemExit ( msg ) return migrations
Grab all versioned migrations from the migration directory, verify
no duplicates and return list.
Grab all versioned migrations from the migration directory verify no duplicates and return list .
"""Grab all versioned migrations from the migration directory, verify
        no duplicates and return list.
        """ # Skip invlaid sql migration version
self