@cortexkit/magic-context 0.49.17 → 0.49.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30315,8 +30315,7 @@ var init_migrations = __esm(async () => {
|
|
|
30315
30315
|
up(db) {
|
|
30316
30316
|
const memoriesPresent = tableExists3(db, "memories");
|
|
30317
30317
|
const notesPresent = tableExists3(db, "notes");
|
|
30318
|
-
const
|
|
30319
|
-
const privilegeCheck = typeof native.function === "function" || typeof native.createFunction === "function" ? "mc_privileged_writer() = 0" : "COALESCE((SELECT enabled FROM context_privilege_state WHERE id = 1), 0) = 0";
|
|
30318
|
+
const privilegeCheck = authorityPrivilegeCheck();
|
|
30320
30319
|
if (memoriesPresent) {
|
|
30321
30320
|
db.exec(`
|
|
30322
30321
|
DROP TRIGGER IF EXISTS memories_authority_guard_insert;
|