Fix #1998: Installation using mysql by danielalanbates · Pull Request #2473 · doccano/doccano
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 1.8k
Conversation
MySQL cannot index TEXT columns in unique key specifications (error 1170). Change TextLabel.text from TextField to CharField(max_length=500) so the unique_together constraint on (example, user, text) can be created. Update the historical api migration, labels initial state migration, and add a new labels migration to alter the column for existing installs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters