@voltro/database 0.4.0 → 0.6.0

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/sql.d.ts CHANGED
@@ -2003,6 +2003,24 @@ declare interface TableUnique {
2003
2003
  };
2004
2004
  }
2005
2005
 
2006
+ /**
2007
+ * Clear the `blocked` flag on every LOSSY operation in a plan.
2008
+ *
2009
+ * Called only after the destructive opt-in has been established, and it is not
2010
+ * cosmetic. `applyPlan` carries its OWN unconditional refusal on any blocked
2011
+ * operation, with no override parameter. So a plan that the boot gate has
2012
+ * decided may proceed, but which still arrives marked blocked, is refused a
2013
+ * second time by the applier — which meant `VOLTRO_DESTRUCTIVE_OK=1` could
2014
+ * never actually drop a table. The planner's fix hint names that exact
2015
+ * variable, so the documented escape hatch pointed at a wall.
2016
+ *
2017
+ * Only `lossy` ops are unblocked, and callers must have already established
2018
+ * that no other class is blocked. A rename-without-marker or a NOT NULL
2019
+ * without backfill stays blocked even in destructive-OK mode: those lose data
2020
+ * regardless of intent, so intent is not the question being asked.
2021
+ */
2022
+ export declare const unblockLossy: (plan: MigrationPlan) => MigrationPlan;
2023
+
2006
2024
  /**
2007
2025
  * Unique-constraint metadata. Set by `.unique()` (or `.unique({ dedup })`).
2008
2026
  *