Download this file

migrations_a.py    12 lines (9 with data), 346 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from flyway import Migration
from . import test_globals
for version in range(10):
class V(Migration):
version = version
def up(self):
test_globals.migrations_run.append((self.module, self.version, 'up'))
def down(self):
test_globals.migrations_run.append((self.module, self.version, 'down'))