44cbfcad56
The counts needs to be modified manually since we're not running triggers during migrations. The schema version needed to be bumped. Signed-off-by: Jakob Borg <jakob@kastelo.net>
17 lines
474 B
SQL
17 lines
474 B
SQL
-- Copyright (C) 2026 The Syncthing Authors.
|
|
--
|
|
-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
-- License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
-- You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
-- All non-file entries should have size zero.
|
|
-- Directories were previously stored with a "synthetic" size of 128.
|
|
UPDATE files
|
|
SET size = 0
|
|
WHERE type != 0
|
|
;
|
|
UPDATE counts
|
|
SET size = 0
|
|
WHERE type != 0
|
|
;
|