drizzle-kit 0.14.5 → 0.14.6
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18230,9 +18230,9 @@ var SQLiteCreateTableConvertor = class extends Convertor {
|
|
|
18230
18230
|
const primaryKeyStatement = column5.primaryKey ? "PRIMARY KEY" : "";
|
|
18231
18231
|
const notNullStatement = column5.notNull ? "NOT NULL" : "";
|
|
18232
18232
|
const defaultStatement = column5.default !== void 0 ? `DEFAULT ${column5.default}` : "";
|
|
18233
|
-
const autoincrementStatement = column5.autoincrement ? "
|
|
18233
|
+
const autoincrementStatement = column5.autoincrement ? "AUTOINCREMENT" : "";
|
|
18234
18234
|
statement += "\n ";
|
|
18235
|
-
statement += `\`${column5.name}\` ${column5.type} ${
|
|
18235
|
+
statement += `\`${column5.name}\` ${column5.type} ${primaryKeyStatement} ${autoincrementStatement} ${defaultStatement} ${notNullStatement}`.squashSpaces();
|
|
18236
18236
|
statement += ",";
|
|
18237
18237
|
}
|
|
18238
18238
|
for (let i = 0; i < referenceData.length; i++) {
|