aboutsummaryrefslogtreecommitdiff
path: root/migrations/auth/20221110_05_BaNtL-create-roles-table.py
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/auth/20221110_05_BaNtL-create-roles-table.py')
-rw-r--r--migrations/auth/20221110_05_BaNtL-create-roles-table.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/migrations/auth/20221110_05_BaNtL-create-roles-table.py b/migrations/auth/20221110_05_BaNtL-create-roles-table.py
index edf3ea4..18499a6 100644
--- a/migrations/auth/20221110_05_BaNtL-create-roles-table.py
+++ b/migrations/auth/20221110_05_BaNtL-create-roles-table.py
@@ -11,7 +11,8 @@ steps = [
"""
CREATE TABLE IF NOT EXISTS roles(
role_id TEXT NOT NULL PRIMARY KEY,
- role_name TEXT NOT NULL
+ role_name TEXT NOT NULL,
+ user_editable INTEGER NOT NULL DEFAULT 1 CHECK (user_editable=0 or user_editable=1)
) WITHOUT ROWID
""",
"DROP TABLE IF EXISTS roles")