Skip to content

Commit

Permalink
Merge pull request #4 from lovetox/main
Browse files Browse the repository at this point in the history
Add support for AUTOINCREMENT
  • Loading branch information
dvanderweele authored Nov 25, 2024
2 parents 8fdc78b + 6e0c970 commit 24a437e
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 24a437e

Please sign in to comment.