Skip to content

Commit

Permalink
fix: tidb does not support sql_create_column_inline_fk
Browse files Browse the repository at this point in the history
  • Loading branch information
wd0517 committed Aug 2, 2023
1 parent 04a7223 commit e3d1f38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_tidb/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@


class DatabaseSchemaEditor(MysqlDatabaseSchemaEditor):

sql_create_column_inline_fk = None

@property
def sql_delete_check(self):
return "ALTER TABLE %(table)s DROP CHECK %(name)s"
Expand Down

0 comments on commit e3d1f38

Please sign in to comment.