Skip to content

Commit

Permalink
Add support for AUTOINCREMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetox committed Jun 14, 2023
1 parent 8fdc78b commit 6e0c970
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbml_sqlite/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ def processColumn(column, emulationMode, join=True):
segments.append(f' {coerceColType(column.type)}')
if column.pk:
segments.append(' PRIMARY KEY')
if column.autoinc:
segments.append(' AUTOINCREMENT')
if column.not_null:
segments.append(' NOT NULL')
if column.unique:
Expand Down

0 comments on commit 6e0c970

Please sign in to comment.