@stacksjs/database 0.75.409 → 0.75.417

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/dist/auth-tables.js +1 -1
  2. package/package.json +16 -16
@@ -124,7 +124,7 @@ import{randomBytes}from"node:crypto";import{log}from"@stacksjs/logging";import{m
124
124
  expires_at ${nullableTimestamp},
125
125
  created_at ${datetime} DEFAULT ${utcNow}
126
126
  )
127
- `).execute();for(const alterSql of passwordResetsExpiresAtSql())try{await db.unsafe(alterSql).execute()}catch{if(options.verbose)log.debug(`[auth-tables] Skipped (already applied): ${alterSql}`)}try{await db.unsafe(indexSqlForDialect("CREATE UNIQUE INDEX IF NOT EXISTS idx_password_resets_email_unique ON password_resets(email)",dbDriver)).execute()}catch(error){if(!isDuplicateIndexError(error))throw error}if(options.verbose)log.info("Creating email_verifications table...");await db.unsafe(`
127
+ `).execute();for(const alterSql of passwordResetsExpiresAtSql())try{await db.unsafe(alterSql).execute()}catch{if(options.verbose)log.debug(`[auth-tables] Skipped (already applied): ${alterSql}`)}try{await db.unsafe(indexSqlForDialect("CREATE UNIQUE INDEX IF NOT EXISTS idx_password_resets_email_unique ON password_resets(email)",dbDriver)).execute()}catch(error){if(!isDuplicateIndexError(error))throw error}try{await db.unsafe(indexSqlForDialect("CREATE INDEX IF NOT EXISTS idx_password_resets_token ON password_resets(token)",dbDriver)).execute()}catch(error){if(!isDuplicateIndexError(error))throw error}if(options.verbose)log.info("Creating email_verifications table...");await db.unsafe(`
128
128
  CREATE TABLE IF NOT EXISTS email_verifications (
129
129
  ${pkColumn},
130
130
  user_id INTEGER NOT NULL,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.409",
5
+ "version": "0.75.417",
6
6
  "description": "The Stacks database integration.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -66,26 +66,26 @@
66
66
  "prepublishOnly": "bun run build"
67
67
  },
68
68
  "dependencies": {
69
- "@stacksjs/config": "0.75.409",
70
- "@stacksjs/env": "0.75.409",
71
- "@stacksjs/error-handling": "0.75.409",
72
- "@stacksjs/faker": "0.75.409",
73
- "@stacksjs/features": "0.75.409",
74
- "@stacksjs/logging": "0.75.409",
75
- "@stacksjs/model-meta": "0.75.409",
76
- "@stacksjs/path": "0.75.409",
77
- "@stacksjs/query-builder": "0.75.409",
78
- "@stacksjs/security": "0.75.409",
79
- "@stacksjs/storage": "0.75.409",
80
- "@stacksjs/strings": "0.75.409",
69
+ "@stacksjs/config": "0.75.417",
70
+ "@stacksjs/env": "0.75.417",
71
+ "@stacksjs/error-handling": "0.75.417",
72
+ "@stacksjs/faker": "0.75.417",
73
+ "@stacksjs/features": "0.75.417",
74
+ "@stacksjs/logging": "0.75.417",
75
+ "@stacksjs/model-meta": "0.75.417",
76
+ "@stacksjs/path": "0.75.417",
77
+ "@stacksjs/query-builder": "0.75.417",
78
+ "@stacksjs/security": "0.75.417",
79
+ "@stacksjs/storage": "0.75.417",
80
+ "@stacksjs/strings": "0.75.417",
81
81
  "@stacksjs/ts-validation": "^0.5.6",
82
82
  "bun-query-builder": "^0.3.32",
83
83
  "dynamodb-tooling": "^0.3.6"
84
84
  },
85
85
  "devDependencies": {
86
- "@stacksjs/cli": "0.75.409",
87
- "@stacksjs/router": "0.75.409",
88
- "@stacksjs/utils": "0.75.409",
86
+ "@stacksjs/cli": "0.75.417",
87
+ "@stacksjs/router": "0.75.417",
88
+ "@stacksjs/utils": "0.75.417",
89
89
  "better-dx": "^0.2.24"
90
90
  }
91
91
  }