+
    Tjq                     l    ^ RI t ^ RIHt ^ RIHt ^ RIHt ] P                  ! R4      t ! R R]4      t	R# )    N)GeometryField)OperationalError)DatabaseSchemaEditorzdjango.contrib.gisc                   |   a a ] tR t^
t oRtV 3R ltV 3R ltV 3R ltV 3R ltRV 3R llt	R t
R tR	 tR
tVtV ;t# )MySQLGISSchemaEditorz7CREATE SPATIAL INDEX %(index)s ON %(table)s(%(column)s)c                v   < \        V\        4      '       d   V P                  '       g   R # \        SV `  V4      # )T)
isinstancer   $_supports_limited_data_type_defaultssuperskip_default)selffield	__class__s   &&`/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/db/backends/mysql/schema.pyr   !MySQLGISSchemaEditor.skip_default   s1     um,,===w#E**    c                   < \        WP                  P                  P                  4      '       d   \        SV `  \        V4      4      # \        SV `  V4      # N)r	   
connectionopsAdapterr   quote_valuestr)r   valuer   s   &&r   r    MySQLGISSchemaEditor.quote_value   sB    e__0088997&s5z22w"5))r   c                  < \        V\        4      '       d   VP                  '       d   VP                  '       g   V P                  P                  4       ;_uu_ 4       pV P                  P                  P                  W1P                  P                  4      pR R R 4       V P                  W4      pX'       d   V.# \        P                  RV R24       . # \        SV `9  W4      #   + '       g   i     LV; i)NzCannot create SPATIAL INDEX z-. Only MyISAM, Aria, and InnoDB support them.)r	   r   spatial_indexnullr   cursorintrospectionsupports_spatial_index_metadb_table_create_spatial_index_sqlloggererrorr   _field_indexes_sql)r   modelr   r   r!   sqlr   s   &&&   r   r'   'MySQLGISSchemaEditor._field_indexes_sql   s    e]++0C0C0CEJJJ''))VOO11HH 4 4 ' * 00>C%u23% 8$ % 	w)%77 *)s   :C&&C6	c                .  < \        V\        4      '       dH   VP                  '       d6   VP                  '       g$   V P	                  W4      p V P                  V4       \        SV `)  W4       R#   \         d    \        P                  R T4        L4i ; i)z`Couldn't remove spatial index: %s (may be expected if your storage engine doesn't support them).N)r	   r   r   r   _delete_spatial_index_sqlexecuter   r%   r&   r   remove_field)r   r(   r   r)   r   s   &&& r   r.   !MySQLGISSchemaEditor.remove_field/   sy    e]++0C0C0CEJJJ00>CS! 	U* $ Ds   A0 0!BBc	                  < \         SV `  VVVVVVVVR 7       \        V\        4      ;'       d&    VP                  ;'       d    VP
                  '       * p	\        V\        4      ;'       d&    VP                  ;'       d    VP
                  '       * p
V	'       g+   V
'       d#   V P                  V P                  W4      4       R# V	'       d-   V
'       g#   V P                  V P                  W4      4       R# R# R# ))strictN)	r   _alter_fieldr	   r   r   r   r-   r$   r,   )r   r(   	old_field	new_fieldold_typenew_typeold_db_paramsnew_db_paramsr1   old_field_spatial_indexnew_field_spatial_indexr   s   &&&&&&&&&  r   r2   !MySQLGISSchemaEditor._alter_field=   s     	 	 		
 y-0 # #''# #NN" 	  y-0 # #''# #NN" 	 
 '+BLL77IJ$-DLL77IJ .E$r   c                R    VP                   P                  : R VP                  : R2# )__id)r"   r#   column)r   r(   r   s   &&&r   _create_spatial_index_name/MySQLGISSchemaEditor._create_spatial_index_nameb   s    "[[115<<@@r   c           	         V P                  W4      pV P                  P                  P                  pV P                  R V! V4      RV! VP
                  P                  4      RV! VP                  4      /,          # )indextabler?   )r@   r   r   
quote_namesql_add_spatial_indexr"   r#   r?   )r   r(   r   
index_nameqns   &&&  r   r$   .MySQLGISSchemaEditor._create_spatial_index_sqle   sj    44UB
__  ++))R
^R,,-b&-
 
 	
r   c                F    V P                  W4      pV P                  W4      # r   )r@   _delete_index_sql)r   r(   r   rG   s   &&& r   r,   .MySQLGISSchemaEditor._delete_spatial_index_sqln   s#    44UB
%%e88r    )F)__name__
__module____qualname____firstlineno__rF   r   r   r'   r.   r2   r@   r$   r,   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r   
   s;     U+*
8&+#KJA
9 9r   r   )
loggingdjango.contrib.gis.db.modelsr   	django.dbr   django.db.backends.mysql.schemar   	getLoggerr%   r   rM   r   r   <module>r[      s1     6 & @			/	0f9/ f9r   