playcademy 0.16.6 → 0.16.7

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/cli.js CHANGED
@@ -2965,7 +2965,7 @@ import { join as join13 } from "path";
2965
2965
  // package.json with { type: 'json' }
2966
2966
  var package_default2 = {
2967
2967
  name: "playcademy",
2968
- version: "0.16.5",
2968
+ version: "0.16.6",
2969
2969
  type: "module",
2970
2970
  exports: {
2971
2971
  ".": {
package/dist/db.d.ts CHANGED
@@ -91,6 +91,11 @@ declare function bundleSeedWorker(seedFilePath: string, projectPath: string): Pr
91
91
  * Shared utility for db reset and db seed commands.
92
92
  * Deletes the database directory and runs drizzle-kit push to recreate schema.
93
93
  *
94
+ * NOTE: Reset intentionally always uses `drizzle-kit push` regardless of the
95
+ * project's schema strategy (push vs migrate). Since reset drops the entire
96
+ * database and recreates from scratch, push is the correct approach — it
97
+ * applies the full current schema without needing migration history.
98
+ *
94
99
  * @param workspace - Workspace root path
95
100
  * @param mf - Miniflare instance to verify recreation
96
101
  * @param options - Options for the reset
package/dist/index.d.ts CHANGED
@@ -528,6 +528,9 @@ interface CustomRoutesIntegration {
528
528
  interface DatabaseIntegration {
529
529
  /** Database directory (defaults to 'db') */
530
530
  directory?: string;
531
+ /** Schema strategy: 'push' uses drizzle-kit push-style diffing, 'migrate' uses migration files.
532
+ * When omitted, auto-detects based on presence of a migrations directory with _journal.json. */
533
+ strategy?: 'push' | 'migrate';
531
534
  }
532
535
  /**
533
536
  * Integrations configuration
@@ -977,6 +980,7 @@ interface DeployedGameInfo {
977
980
  deployedRoutes?: string[];
978
981
  deployedResources?: string[];
979
982
  schemaSnapshot?: unknown;
983
+ lastAppliedMigrationTag?: string;
980
984
  integrationKeys?: string[];
981
985
  integrationsHash?: string;
982
986
  secretsHashes?: Record<string, string>;
@@ -1073,8 +1077,10 @@ interface BackendDeploymentMetadata {
1073
1077
  deployedRoutes: string[];
1074
1078
  /** Resource bindings (e.g., ['database', 'keyValue', 'bucket']) */
1075
1079
  deployedResources: string[];
1076
- /** Drizzle schema JSON snapshot */
1080
+ /** Drizzle schema JSON snapshot (push mode) */
1077
1081
  schemaSnapshot?: unknown;
1082
+ /** Tag of last applied migration file (migrate mode) */
1083
+ lastAppliedMigrationTag?: string;
1078
1084
  /** List of enabled integration keys (e.g., ['timeback', 'auth']) */
1079
1085
  integrationKeys: string[];
1080
1086
  /** Hash of integrations config (for detecting metadata changes) */