aboutsummaryrefslogtreecommitdiff
path: root/migrations/auth/20221108_01_CoxYh-create-the-groups-table.py
blob: 06491dd703bf4bbb17ddea633b0262c046274143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Create the groups table
"""

from yoyo import step

__depends__ = {'20221103_02_sGrIs-create-user-credentials-table'}

steps = [
    step(
        """
        CREATE TABLE IF NOT EXISTS groups(
            group_id TEXT PRIMARY KEY NOT NULL,
            group_name TEXT NOT NULL
        ) WITHOUT ROWID
        """,
        "DROP TABLE IF EXISTS groups")
]