UTRS2 / utrs

Unblock Ticket Request System (v2) used on Wikimedia projects
https://en.wikipedia.org/wiki/Wikipedia:Unblock_Ticket_Request_System
GNU Affero General Public License v3.0
25 stars 25 forks source link

database: Don't try to shorten the user_agent field #707

Closed supertassu closed 1 year ago

supertassu commented 1 year ago

The test sure is failing because it tries to reset the database by undoing all of the migrations, and the user_agent field has values longer than the previous length limit. This is fixed by removing the user_agent truncation from the down migrations. As a bonus we can drop 2020_05_26_091658_expand_ua entirely.

Fixes: #706