db-model-router 1.0.11 → 1.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "db-model-router",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Generative API Creation using mysql2 and express libraries in node js",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -131,16 +131,16 @@ function autoIncrementType(adapter) {
131
131
  switch (adapter) {
132
132
  case "postgres":
133
133
  case "cockroachdb":
134
- return "SERIAL";
134
+ return "BIGSERIAL";
135
135
  case "mssql":
136
- return "INT IDENTITY(1,1)";
136
+ return "BIGINT IDENTITY(1,1)";
137
137
  case "oracle":
138
- return "NUMBER GENERATED BY DEFAULT AS IDENTITY";
138
+ return "NUMBER(19) GENERATED BY DEFAULT AS IDENTITY";
139
139
  case "sqlite3":
140
140
  return "INTEGER";
141
141
  default:
142
142
  // mysql, mariadb
143
- return "INT AUTO_INCREMENT";
143
+ return "BIGINT AUTO_INCREMENT";
144
144
  }
145
145
  }
146
146