aboutsummaryrefslogtreecommitdiff
path: root/migrations/2015_10_14_17201444836027_create_books_table.py
blob: 62b631f6224cb595c44ae7c7e7198c8e84fd5a6a (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 CreateBooksTable(Migration):

    def up(self):
        """
        Run the migrations.
        """
        with self.schema.create('books') as table:
            table.string('canonical_name').primary()

    def down(self):
        """
        Revert the migrations.
        """
        self.schema.drop('books')