]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Update error messages for SQLite no constraint support
authorMartin Haaß <vvvrrooomm@gmail.com>
Sat, 16 Mar 2019 21:28:59 +0000 (17:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Feb 2020 17:10:16 +0000 (12:10 -0500)
clarify that batch mode should be used.

Closes: #526
Pull-request: https://github.com/sqlalchemy/alembic/pull/526
Pull-request-sha: 5d89cf4e77e5568887f2c8926a589c55427dab12

Change-Id: I06e7d8062ae7d1c96ec21318adf8f946a025aef8

alembic/ddl/sqlite.py

index 5a6977869088dd09b83ee010f965ce8b7ed57cca..f89b85483e1aaa9d137913ed09e4ec29119d1b18 100644 (file)
@@ -33,17 +33,24 @@ class SQLiteImpl(DefaultImpl):
         if const._create_rule is None:
             raise NotImplementedError(
                 "No support for ALTER of constraints in SQLite dialect"
+                "Please refer to the batch mode feature which allows for "
+                "SQLite migrations using a copy-and-move strategy."
             )
         elif const._create_rule(self):
             util.warn(
                 "Skipping unsupported ALTER for "
                 "creation of implicit constraint"
+                "Please refer to the batch mode feature which allows for "
+                "SQLite migrations using a copy-and-move strategy."
             )
 
     def drop_constraint(self, const):
         if const._create_rule is None:
             raise NotImplementedError(
                 "No support for ALTER of constraints in SQLite dialect"
+                "Please refer to the batch mode feature which allows for "
+                "SQLite migrations using a copy-and-move strategy."
+
             )
 
     def compare_server_default(