You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/core/src/view_admin.rs
+8-1
Original file line number
Diff line number
Diff line change
@@ -252,12 +252,19 @@ INSERT INTO ps_migration(id, down_migrations) VALUES(3, json_array(json_object('
252
252
// language=SQLite
253
253
local_db.exec_safe("\
254
254
ALTER TABLE ps_buckets ADD COLUMN op_checksum INTEGER NOT NULL DEFAULT 0;
255
+
ALTER TABLE ps_buckets ADD COLUMN pending_compact INTEGER NOT NULL DEFAULT 0;
255
256
256
257
UPDATE ps_buckets SET op_checksum = (
257
258
SELECT IFNULL(SUM(ps_oplog.hash), 0) & 0xffffffff FROM ps_oplog WHERE ps_oplog.bucket = ps_buckets.name
258
259
);
259
260
260
-
INSERT INTO ps_migration(id, down_migrations) VALUES(4, json_array(json_object('sql', 'DELETE FROM ps_migration WHERE id >= 4'), json_object('sql', 'ALTER TABLE ps_buckets DROP COLUMN op_checksum')));
261
+
INSERT INTO ps_migration(id, down_migrations)
262
+
VALUES(4,
263
+
json_array(
264
+
json_object('sql', 'DELETE FROM ps_migration WHERE id >= 4'),
265
+
json_object('sql', 'ALTER TABLE ps_buckets DROP COLUMN op_checksum'),
266
+
json_object('sql', 'ALTER TABLE ps_buckets DROP COLUMN pending_compact')
0 commit comments