blob: 077182b965cb4c9851c5fa2bcbc65e2e5e7bbe5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
"""
Add 'privilege_category' and 'privilege_description' columns to 'privileges' table
"""
from yoyo import step
__depends__ = {'20221110_07_7WGa1-create-role-privileges-table'}
steps = [
step(
"""
ALTER TABLE privileges ADD COLUMN
privilege_category TEXT NOT NULL DEFAULT 'common'
""",
"ALTER TABLE privileges DROP COLUMN privilege_category"),
step(
"""
ALTER TABLE privileges ADD COLUMN
privilege_description TEXT
""",
"ALTER TABLE privileges DROP COLUMN privilege_description")
]
|