@absolutejs/auth 0.85.0 → 0.86.1

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.
@@ -2922,7 +2922,7 @@ var oauthSocketTicketsTable = pgTable10("auth_oauth_socket_tickets", {
2922
2922
  });
2923
2923
 
2924
2924
  // src/organizations/postgresOrganizationStore.ts
2925
- import { and as and6, desc as desc7, eq as eq11 } from "drizzle-orm";
2925
+ import { and as and6, desc as desc7, eq as eq11, exists, gt as gt3, notExists, sql as sql3 } from "drizzle-orm";
2926
2926
  import {
2927
2927
  bigint as bigint9,
2928
2928
  jsonb as jsonb6,
@@ -3271,18 +3271,18 @@ var JOURNAL_DDL = `CREATE TABLE IF NOT EXISTS "auth_migrations" (
3271
3271
  var isJournalRow = (value) => typeof value === "object" && value !== null && typeof Reflect.get(value, "id") === "string";
3272
3272
  var isBlockName = (value) => Object.hasOwn(blockMigrations, value);
3273
3273
  var allBlockNames = () => Object.keys(blockMigrations).filter(isBlockName);
3274
- var applyOne = async (client, id, sql3, log) => {
3275
- await client.query(sql3);
3274
+ var applyOne = async (client, id, sql4, log) => {
3275
+ await client.query(sql4);
3276
3276
  await client.query(`INSERT INTO "auth_migrations" ("id", "applied_at_ms") VALUES ($1, $2)`, [id, Date.now()]);
3277
3277
  log(`apply ${id}`);
3278
3278
  };
3279
- var runOne = async (client, id, sql3, applied, result, log) => {
3279
+ var runOne = async (client, id, sql4, applied, result, log) => {
3280
3280
  if (applied.has(id)) {
3281
3281
  result.skipped.push(id);
3282
3282
  log(`skip ${id}`);
3283
3283
  return;
3284
3284
  }
3285
- await applyOne(client, id, sql3, log);
3285
+ await applyOne(client, id, sql4, log);
3286
3286
  result.applied.push(id);
3287
3287
  };
3288
3288
  var runMigrations = async ({
@@ -3730,5 +3730,5 @@ var main = async () => {
3730
3730
  };
3731
3731
  await main();
3732
3732
 
3733
- //# debugId=003E941CFD8164A364756E2164756E21
3733
+ //# debugId=72E76020065991D164756E2164756E21
3734
3734
  //# sourceMappingURL=migrate.js.map