blob: 96acc929e3db85749574cbca5a0ac9c49f4f9d31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from orator.migrations import Migration
class CreateSettingsTable(Migration):
def up(self):
"""
Run the migrations.
"""
with self.schema.create('settings') as table:
table.text('key').primary()
table.text('value')
table.timestamps()
def down(self):
"""
Revert the migrations.
"""
self.schema.drop('settings')
|