blob: abddc6b4aad008ddfbbb3892ae51ce797e51ed6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
from orator.migrations import Migration
class CreatePartsTable(Migration):
def up(self):
"""
Run the migrations.
"""
with self.schema.create('parts') as table:
table.string('name')
table.primary('name')
def down(self):
"""
Revert the migrations.
"""
self.schema.drop('parts')
|