Parent: [8cfa59] (diff)

Download this file

migrations_b.py    20 lines (17 with data), 644 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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'))
def up_requires(self):
yield ('a', self.version)
for req in Migration.up_requires(self):
yield req
def down_requires(self):
yield ('a', self.version)
for req in Migration.down_requires(self):
yield req