summaryrefslogtreecommitdiff
path: root/yoyo/internalmigrations/v1.py
blob: 16f9dc6e108ba4f077459f0a688c44e236582e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
Version 1 schema.

Compatible with yoyo-migrations < 6.0
"""


def upgrade(backend):
    create_migration_table(backend)


def create_migration_table(backend):
    backend.execute(
        "CREATE TABLE {0.migration_table_quoted} ("
        "id VARCHAR(191) NOT NULL PRIMARY KEY,"
        "ctime TIMESTAMP)".format(backend)
    )