{"action":"closed","issue":{"url":"https://api.github.com/repos/jazzband/django-constance/issues/121","labels_url":"https://api.github.com/repos/jazzband/django-constance/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/jazzband/django-constance/issues/121/comments","events_url":"https://api.github.com/repos/jazzband/django-constance/issues/121/events","html_url":"https://github.com/jazzband/django-constance/issues/121","id":117811978,"number":121,"title":"Change max length for key field in model Constance","user":{"login":"falknes","id":12417421,"avatar_url":"https://avatars.githubusercontent.com/u/12417421?v=3","gravatar_id":"","url":"https://api.github.com/users/falknes","html_url":"https://github.com/falknes","followers_url":"https://api.github.com/users/falknes/followers","following_url":"https://api.github.com/users/falknes/following{/other_user}","gists_url":"https://api.github.com/users/falknes/gists{/gist_id}","starred_url":"https://api.github.com/users/falknes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falknes/subscriptions","organizations_url":"https://api.github.com/users/falknes/orgs","repos_url":"https://api.github.com/users/falknes/repos","events_url":"https://api.github.com/users/falknes/events{/privacy}","received_events_url":"https://api.github.com/users/falknes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T13:18:11Z","updated_at":"2016-01-07T16:42:56Z","closed_at":"2016-01-07T16:42:55Z","body":"Would it be possible to change max_length of key in Constance database model from 255 to a value usable with encoding ``utfmb8``?\r\n\r\nFrom:\r\n```python\r\nkey = models.CharField(max_length=255, unique=True)\r\n```\r\n\r\nTo for example:\r\n```python\r\nkey = models.CharField(max_length=150, unique=True)\r\n```\r\n\r\nHaving a key thats 255 characters long feels like overkill, and changing it to a smaler value will also make it usable by in mysql without enabling \"innodb_large_prefix\" when using true utf8 support.\r\n\r\nThe current setup with 255 characters allows keys to be:\r\n```\r\nLorem_ipsum_dolor_sit_amet__consectetur_adipiscing_elit__Cras_consectetur_duinon_feugiat_finibus__Aliquam_sit_amet_mauris_id_tortor_rhoncus_gravida_eu_eu_augue__Nullam_ante_turpis__convallis_in_nisl_et__iaculis_luctus_magna_aSed_a_rutrum_massae_Sed_amete\r\n```\r\n\r\n``utf8mb4`` max at the moment is 191 characters with regular max key length of 767"}}