TiDB does not support multiple operations with a single DDL statement. For more information, refer to the MySQL Compatibility - DDL operations documentation. In django-tidb, we now separate the SQL into multiple DDL statements: first, add the column, and then add the unique constraint and foreign key.
fix https://github.com/pingcap/django-tidb/issues/48
TiDB does not support multiple operations with a single DDL statement. For more information, refer to the MySQL Compatibility - DDL operations documentation. In django-tidb, we now separate the SQL into multiple DDL statements: first, add the column, and then add the unique constraint and foreign key.