deepspace 0.3.3 → 0.3.4

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/worker.d.ts CHANGED
@@ -2845,6 +2845,12 @@ declare const COST_RATES: {
2845
2845
  * ])
2846
2846
  * ```
2847
2847
  *
2848
+ * **SQL formatting requirement:** D1's `exec()` is single-line-per-statement.
2849
+ * Each migration string can hold multiple statements separated by `;`, but
2850
+ * every statement must fit on one line. Multi-line statements (column lists
2851
+ * across newlines) fail with `D1_EXEC_ERROR: incomplete input`. If you need
2852
+ * complex migrations, write each statement on its own line within the string.
2853
+ *
2848
2854
  * Each entry in the array is one migration. The runner records the index of
2849
2855
  * each successfully-applied migration in `_dpc_migrations`; subsequent calls
2850
2856
  * skip rows already recorded. Adding a new migration means appending to the
package/dist/worker.js CHANGED
@@ -6118,10 +6118,7 @@ var COST_RATES = {
6118
6118
 
6119
6119
  // src/server/utils/d1-migrations.ts
6120
6120
  var META_TABLE = "_dpc_migrations";
6121
- var META_BOOTSTRAP_SQL = `CREATE TABLE IF NOT EXISTS ${META_TABLE} (
6122
- idx INTEGER PRIMARY KEY,
6123
- applied_at TEXT NOT NULL
6124
- );`;
6121
+ var META_BOOTSTRAP_SQL = `CREATE TABLE IF NOT EXISTS ${META_TABLE} (idx INTEGER PRIMARY KEY, applied_at TEXT NOT NULL);`;
6125
6122
  async function runMigrations(db, migrations) {
6126
6123
  await db.exec(META_BOOTSTRAP_SQL);
6127
6124
  const row = await db.prepare(`SELECT COUNT(*) AS n FROM ${META_TABLE}`).first();