Grants read-only access after import

Adds execution of grant statements to provide read-only privileges
for the web user following table creation or via a dedicated function.
Facilitates easier post-import permission management.
This commit is contained in:
Itz-Agasta
2026-01-27 17:53:25 +05:30
parent ff1f1b06d9
commit bf0ee6685b
2 changed files with 12 additions and 0 deletions

View File

@@ -157,6 +157,8 @@ def create_tables(conn: Connection, config: Configuration, reverse_only: bool =
sql.run_sql_file(conn, 'tables.sql')
sql.run_sql_file(conn, 'grants.sql')
def create_table_triggers(conn: Connection, config: Configuration) -> None:
""" Create the triggers for the tables. The trigger functions must already