From 11ad3427efdcd76c86be0e16e56ed3c911170549 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Wed, 1 Jul 2026 10:03:10 -0500 Subject: [PATCH] Fix permissioned authority migration startup --- src/storage/store.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/store.zig b/src/storage/store.zig index cd6e377..54fcc4f 100644 --- a/src/storage/store.zig +++ b/src/storage/store.zig @@ -3828,6 +3828,7 @@ fn migratePermissionedSpacesAuthorityColumns() !void { const name = "permissioned-spaces-authority-columns"; if (try migrationApplied(name)) return; if (!try permissionedSpacesColumnExistsLocked("owner_did")) { + try conn.execNoArgs("CREATE INDEX IF NOT EXISTS permissioned_spaces_authority_idx ON permissioned_spaces (authority_did, space_type, uri)"); try markMigrationApplied(name); return; } @@ -5592,7 +5593,6 @@ const schema_statements = [_][*:0]const u8{ \\ UNIQUE(authority_did, space_type, skey) \\) , - "CREATE INDEX IF NOT EXISTS permissioned_spaces_authority_idx ON permissioned_spaces (authority_did, space_type, uri)", \\CREATE TABLE IF NOT EXISTS permissioned_space_actor_state ( \\ space TEXT NOT NULL REFERENCES permissioned_spaces(uri) ON DELETE CASCADE, \\ actor_did TEXT NOT NULL, -- 2.51.2