From 6e0c970eb2d8cd1d1696dd61dc0832317055bd3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 14 Jun 2023 20:32:37 +0200 Subject: [PATCH] Add support for AUTOINCREMENT --- dbml_sqlite/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbml_sqlite/core.py b/dbml_sqlite/core.py index 07f7e00..9dd5a83 100644 --- a/dbml_sqlite/core.py +++ b/dbml_sqlite/core.py @@ -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: