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