mirror of
https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker.git
synced 2026-05-01 20:50:54 -05:00
13 lines
292 B
SQL
13 lines
292 B
SQL
-- description: WAL journal, 'None' fix for missing table
|
|
|
|
-- Set the journal mode to WAL
|
|
PRAGMA journal_mode = WAL;
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
-- Fix a bug where 'None' was inserted in missing instead of NULL
|
|
UPDATE "missing"
|
|
SET "element_id" = NULL
|
|
WHERE "missing"."element_id" = 'None';
|
|
|
|
COMMIT; |