The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
test(db): name the restore's plugin schemas as plugin ids allow
Mauriceddb42ecf0a2a
diff --git a/server/tests/unit/db/engine/postgres/plugin-schema.test.ts b/server/tests/unit/db/engine/postgres/plugin-schema.test.tsindex fbb494ce5..97ee35a26 100644--- a/server/tests/unit/db/engine/postgres/plugin-schema.test.ts+++ b/server/tests/unit/db/engine/postgres/plugin-schema.test.ts@@ -50,11 +50,11 @@ describe('plugin schema names', () => {});it("PGSCHEMA-005: a restore drops only the role's own plugin schemas, then creates the dump's", () => {- const sql = pluginSchemasSql(['trek_plugin_a', 'trek_plugin_b']);+ const sql = pluginSchemasSql(['trek_plugin_alpha', 'trek_plugin_beta']);expect(sql).toContain("starts_with(nspname, 'trek_plugin_')");expect(sql).toContain('pg_get_userbyid(nspowner) = current_user');expect(sql).toContain("EXECUTE format('DROP SCHEMA %I CASCADE', r.nspname);");- expect(sql.endsWith('CREATE SCHEMA "trek_plugin_a";\nCREATE SCHEMA "trek_plugin_b";\n')).toBe(true);+ expect(sql.endsWith('CREATE SCHEMA "trek_plugin_alpha";\nCREATE SCHEMA "trek_plugin_beta";\n')).toBe(true);expect(pluginSchemasSql([])).not.toContain('CREATE SCHEMA');expect(() => pluginSchemasSql(['auth'])).toThrow(/is not a plugin schema name/);});