@@ -0,0 +1,558 @@
+# coding=utf-8%0A%22%22%22fix url 67 space%0A%0ARevision ID: 1bff025676c6%0ARevises: d57b40e2209%0ACreate Date: 2015-03-09 18:38:16.334000%0A%0A%22%22%22%0A%0A# revision identifiers, used by Alembic.%0Arevision = '1bff025676c6'%0Adown_revision = 'd57b40e2209'%0A%0Aimport datetime%0A%0Afrom alembic import op%0Aimport sqlalchemy as sa%0A%0A%0Adef upgrade():%0A    print(op.get_bind().execute(sa.text('UPDATE source '%0A        'SET url = regexp_replace(url, :pattern, :repl) '%0A        'WHERE url ~ :pattern '%0A        ).bindparams(pattern=r'%5E(%5CS%7B66%7D) (%5CS*)$', repl=r'%5C1%5C2')).rowcount)%0A%0A%0Adef downgrade():%0A    pass%0A

fix urls with exactly one space at position 67