drizzle-kit 0.9.39 → 0.9.40
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -167388,7 +167388,7 @@ var CreateTableConvertor = class extends Convertor {
|
|
|
167388
167388
|
const column = columns[i];
|
|
167389
167389
|
const primaryKeyStatement = column.primaryKey ? "PRIMARY KEY" : "";
|
|
167390
167390
|
const notNullStatement = column.notNull ? "NOT NULL" : "";
|
|
167391
|
-
const defaultStatement = column.defaultValue ? `DEFAULT ${column.defaultValue}` : "";
|
|
167391
|
+
const defaultStatement = column.defaultValue !== void 0 ? `DEFAULT ${column.defaultValue}` : "";
|
|
167392
167392
|
statement += " " + `"${column.name}" ${column.type} ${primaryKeyStatement} ${defaultStatement} ${notNullStatement}`.replace(/ +/g, " ").trim();
|
|
167393
167393
|
statement += (i === columns.length - 1 ? "" : ",") + "\n";
|
|
167394
167394
|
}
|