aboutsummaryrefslogtreecommitdiff
path: root/migrations/auth/20221103_01_js9ub-initialise-the-auth-entic-oris-ation-database.py
blob: d511f5d1c343ea5b6965d6488c5d6bc11d797ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Initialise the auth(entic|oris)ation database.
"""

from yoyo import step

__depends__ = {} # type: ignore[var-annotated]

steps = [
    step(
        """
        CREATE TABLE IF NOT EXISTS users(
            user_id TEXT PRIMARY KEY NOT NULL,
            email TEXT UNIQUE NOT NULL,
            name TEXT
        ) WITHOUT ROWID
        """,
        "DROP TABLE IF EXISTS users")
]