[MIGRATION] Text references

Implements [ticket 1991](https://www.openproject.org/issues/1991)