mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 11:15:41 +02:00
fix: remove ublock_enabled from INSERT OR IGNORE in DDL batch
The INSERT ran before the ALTER TABLE migration added the column, causing 'table instance_settings has no column named ublock_enabled' on existing databases. The INSERT OR IGNORE for the default row only needs the original columns; the migration's DEFAULT 1 handles the new column for existing and new rows alike.
This commit is contained in:
parent
1b3543ead8
commit
28c62ddc5a
1 changed files with 2 additions and 2 deletions
|
|
@ -469,8 +469,8 @@ pub fn initialize_auth_schema(conn: &Connection) -> Result<()> {
|
|||
|
||||
INSERT OR IGNORE INTO instance_settings
|
||||
(id, public_index_enabled, public_entry_content_enabled,
|
||||
public_archive_submission_enabled, default_entry_visibility, ublock_enabled)
|
||||
VALUES (1, 0, 0, 0, 2, 1);
|
||||
public_archive_submission_enabled, default_entry_visibility)
|
||||
VALUES (1, 0, 0, 0, 2);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id INTEGER PRIMARY KEY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue