We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3063a4a commit 4143a38Copy full SHA for 4143a38
piccolo/apps/migrations/commands/new.py
@@ -15,6 +15,7 @@
15
DiffableTable,
16
SchemaDiffer,
17
)
18
+from piccolo.engine import SQLiteEngine
19
20
21
TEMPLATE_DIRECTORY = os.path.join(
@@ -140,6 +141,10 @@ def new(app_name: str, auto: bool = False):
140
141
print("Can't find piccolo_conf")
142
sys.exit(1)
143
144
+ if auto and isinstance(getattr(piccolo_conf, "DB"), SQLiteEngine):
145
+ print("Auto migrations aren't currently supported by SQLite.")
146
+ sys.exit(1)
147
+
148
try:
149
app_registry: AppRegistry = piccolo_conf.APP_REGISTRY
150
except AttributeError:
0 commit comments