drupflare/worker - v1.0.0
    Preparing search index...

    Function updbPrepare

    • Starts a run: the fence, the snapshot and the plan, as the first three units.

      Refuses when a run is already live, because two cursors over one schema is the one failure this whole file exists to prevent.

      maint_was is read here, in JS, BEFORE any PHP runs -- so the value restored at the end is the value that was true before the fence went up, and it is durable rather than session state.

      Parameters

      Returns
          | {
              detail: string;
              ok: boolean;
              reason: string;
              run: UpdbRun;
              units?: undefined;
          }
          | {
              detail: string;
              ok: boolean;
              reason: string;
              run?: undefined;
              units?: undefined;
          }
          | {
              detail?: undefined;
              ok: boolean;
              reason?: undefined;
              run: UpdbRun
              | null;
              units: number;
          }