U
    {®Þhr  ã                   @   s*   d dl mZ dd„ ZG dd„ dejƒZdS )é    )Ú
migrationsc                 C   s   |j jdkr| d¡ dS )a<  
    Treebeard's path comparison logic can fail on certain locales such as sk_SK, which
    sort numbers after letters. To avoid this, we explicitly set the collation for the
    'path' column to the (non-locale-specific) 'C' collation.

    See: https://groups.google.com/d/msg/wagtail/q0leyuCnYWI/I9uDvVlyBAAJ
    Ú
postgresqlzh
            ALTER TABLE wagtailcore_collection ALTER COLUMN path TYPE VARCHAR(255) COLLATE "C"
        N)Ú
connectionÚvendorÚexecute)ZappsZschema_editor© r   ú}/var/www/dating/data/www/fatepal.com/env/lib/python3.8/site-packages/wagtail/migrations/0027_fix_collection_path_collation.pyÚset_collection_path_collation   s    ÿr	   c                   @   s$   e Zd ZdgZe eejj¡gZdS )Ú	Migration)ZwagtailcoreZ 0026_group_collection_permissionN)	Ú__name__Ú
__module__Ú__qualname__Údependenciesr   Z	RunPythonr	   ZnoopÚ
operationsr   r   r   r   r
      s   ÿÿr
   N)Z	django.dbr   r	   r
   r   r   r   r   Ú<module>   s   