Add migration patch for custom ticket numbers
Add validation errors for custom number formats

And fixup the migration patch