@nitronjs/framework 0.3.8 → 0.3.9

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.
@@ -104,6 +104,9 @@ export default class Schema {
104
104
  sql += ` DEFAULT ${Number(raw)}`;
105
105
  }
106
106
  }
107
+ else if (column.type === 'timestamp' && !column.modifiers.nullable) {
108
+ sql += ' DEFAULT CURRENT_TIMESTAMP';
109
+ }
107
110
  if (column.modifiers.unique) sql += ' UNIQUE';
108
111
  }
109
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitronjs/framework",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "NitronJS is a modern and extensible Node.js MVC framework built on Fastify. It focuses on clean architecture, modular structure, and developer productivity, offering built-in routing, middleware, configuration management, CLI tooling, and native React integration for scalable full-stack applications.",
5
5
  "bin": {
6
6
  "njs": "./cli/njs.js"