summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mysql/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 5abb1f3d6..025737fde 100644
--- a/lib/sqlalchemy/dialects/mysql/base.py
+++ b/lib/sqlalchemy/dialects/mysql/base.py
@@ -1093,6 +1093,15 @@ class MySQLDDLCompiler(compiler.DDLCompiler):
"causes ON UPDATE/ON DELETE clauses to be ignored.")
return ""
+ def visit_set_table_comment(self, create):
+ return "ALTER TABLE %s COMMENT '%s'" % (
+ self.preparer.format_table(create.element),
+ create.element.comment
+ )
+
+ def visit_set_column_comment(self, create):
+ raise NotImplementedError
+
class MySQLTypeCompiler(compiler.GenericTypeCompiler):
def _extend_numeric(self, type_, spec):