def set_page_path_collation(apps, schema_editor):
 if (schema_editor.connection.vendor == u'postgresql'):
  schema_editor.execute(u'\n            ALTER TABLE wagtailcore_page ALTER COLUMN path TYPE VARCHAR(255) COLLATE "C"\n        ')

def set_page_path_collation ( apps , schema_editor ) : if ( schema_editor . connection . vendor == u'postgresql' ) : schema_editor . execute ( u'\n            ALTER TABLE wagtailcore_page ALTER COLUMN path TYPE VARCHAR(255) COLLATE "C"\n        ' )
treebeards path comparison logic can fail on certain locales such as sk_sk .