Skip to content

Commit

Permalink
Update toSql.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Apr 5, 2023
1 parent 833dd77 commit 88cae6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/toSql.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export function toFieldDefinition(schema) {
if (schema.maxLength) sql += '('+(schema.maxLength*4)+')'; // TODO: *4 for utf8mb4
if (schema.required) sql += ' NOT NULL';
if (schema.x_autoincrement) sql += ' AUTO_INCREMENT';
//if (schema.x_primary) sql += ' PRIMARY KEY';
if (schema.default) sql += ' DEFAULT '+schema.default;

if (schema.contentEncoding === '7bit') sql += ' CHARACTER SET ascii';
Expand Down

0 comments on commit 88cae6a

Please sign in to comment.