aboutsummaryrefslogtreecommitdiff
path: root/migrations/auth/20221110_05_BaNtL-create-roles-table.py
blob: edf3ea43da91892986afd6a86920e28ab6c2ee2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Create 'roles' table
"""

from yoyo import step

__depends__ = {'20221110_04_6PRFQ-create-genotype-resources-table'}

steps = [
    step(
        """
        CREATE TABLE IF NOT EXISTS roles(
            role_id TEXT NOT NULL PRIMARY KEY,
            role_name TEXT NOT NULL
        ) WITHOUT ROWID
        """,
        "DROP TABLE IF EXISTS roles")
]