blob: 8ac9bf72866c714e437532a70f7fd540cd9cbc30 (
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 CreateFoldersTable(Migration):
def up(self):
"""
Run the migrations.
"""
with self.schema.create('folders') as table:
table.string('name').primary()
def down(self):
"""
Revert the migrations.
"""
self.schema.drop('folders')
|