Persist UI preferences for a user.
(username: str, accent_key: str, font_key: str, ui_theme_key: Optional[str]=None)
| 1093 | except Exception: |
| 1094 | pass |
| 1095 | if "bounty_set_by" not in pcols: |
| 1096 | try: |
| 1097 | cur.execute("ALTER TABLE profiler_entries ADD COLUMN bounty_set_by TEXT") |
| 1098 | except Exception: |
| 1099 | pass |
| 1100 | if "bounty_updated_at" not in pcols: |
| 1101 | try: |
| 1102 | cur.execute("ALTER TABLE profiler_entries ADD COLUMN bounty_updated_at TEXT") |
| 1103 | except Exception: |
| 1104 | pass |
| 1105 | if "bounty_reason" not in pcols: |
| 1106 | try: |
| 1107 | cur.execute("ALTER TABLE profiler_entries ADD COLUMN bounty_reason TEXT") |
| 1108 | except Exception: |
| 1109 | pass |
| 1110 | cur.execute(""" |
| 1111 | CREATE TABLE IF NOT EXISTS profiler_attachments ( |
| 1112 | id INTEGER PRIMARY KEY AUTOINCREMENT, |
| 1113 | entry_id INTEGER NOT NULL, |
| 1114 | filename_enc TEXT NOT NULL, |
no test coverage detected