kempo 4.2.7 → 4.2.8

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.
Files changed (2) hide show
  1. package/bin/cli.js +3 -3
  2. package/package.json +5 -2
package/bin/cli.js CHANGED
@@ -408,13 +408,13 @@ if(containerMode === 'new'){
408
408
 
409
409
  console.log('\n--- Initializing database ---\n');
410
410
 
411
- // On a fresh install, clear migration history so drizzle-kit push doesn't prompt about schema diffs
412
- const migrationDir = join(projectDir, 'drizzle', 'migrations');
411
+ // Clear migration snapshots so drizzle-kit push compares against the live DB only
412
+ const migrationDir = join(projectDir, 'server', 'db', 'migrations');
413
413
  if(existsSync(migrationDir)){
414
414
  rmSync(migrationDir, { recursive: true, force: true });
415
415
  }
416
416
 
417
- execSync('npx drizzle-kit push', { cwd: projectDir, stdio: 'inherit' });
417
+ execSync('npx drizzle-kit push --force', { cwd: projectDir, stdio: 'inherit' });
418
418
  execSync('node node_modules/kempo/scripts/init-db.js', { cwd: projectDir, stdio: 'inherit' });
419
419
 
420
420
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kempo",
3
- "version": "4.2.7",
3
+ "version": "4.2.8",
4
4
  "type": "module",
5
5
  "description": "A fullstack CMS framework for creating websites with user authentication",
6
6
  "scripts": {
@@ -25,7 +25,10 @@
25
25
  "app-public",
26
26
  "app-server",
27
27
  "app-drizzle.config.js",
28
- "server",
28
+ "server/utils",
29
+ "server/db/index.js",
30
+ "server/db/schema.js",
31
+ "server/sdk.js",
29
32
  "middleware",
30
33
  "app-templates",
31
34
  "scripts/init-db.js"