blob: 3f72f3ec68cf1807860f88aff429d709fb684b0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"""
create user_credentials table
"""
from yoyo import step
__depends__ = {'20221103_01_js9ub-initialise-the-auth-entic-oris-ation-database'}
steps = [
step(
"""
CREATE TABLE IF NOT EXISTS user_credentials(
user_id TEXT PRIMARY KEY,
password TEXT NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(user_id)
) WITHOUT ROWID
""",
"DROP TABLE IF EXISTS user_credentials")
]
|