Ë
    êl)j^  ã                   óH   — d Z ddlmZmZ d„ Z G d„ dej
                  «      Zy)a½  
Documentation du fichier : facturation/migrations/0011_stock_quantite_non_negative.py

Role du fichier :
    Cette migration historique enregistre une evolution du schema de donnees
    pour l'application facturation.

A retenir :
    - elle conserve la trace des changements de structure de la base ;
    - elle ne porte pas la logique metier courante du projet ;
    - elle reste importante pour reconstruire la base ou rejouer l'historique.
é    )Ú
migrationsÚmodelsc                 ó€   — | j                  dd«      }|j                  j                  d¬«      j                  d¬«       y)z3Execute le traitement clamp negative stock to zero.ÚfacturationÚStockPointDeVenter   )Úquantite__lt)ÚquantiteN)Ú	get_modelÚobjectsÚfilterÚupdate)ÚappsÚschema_editorr   s      úU/var/www/faccontrol_acokin/facturation/migrations/0011_stock_quantite_non_negative.pyÚclamp_negative_stock_to_zeror      s;   € ð Ÿ™ }Ð6IÓJÐØ×Ñ×$Ñ$°!Ð$Ó4×;Ñ;ÀQÐ;ÕGó    c            	       óÒ   — e Zd ZdZdgZ ej                  eej                  j                  «       ej                  d e
j                   e
j                  d¬«      d¬«      ¬«      gZy	)
Ú	Migrationz?Decrit les operations de schema appliquees par cette migration.)r   Ú%0010_commande_fiscal_channel_and_moreÚstockpointdeventer   )Úquantite__gteÚstock_quantite_gte_0)Ú	conditionÚname)Ú
model_nameÚ
constraintN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údependenciesr   Ú	RunPythonr   ÚnoopÚAddConstraintr   ÚCheckConstraintÚQÚ
operations© r   r   r   r      sn   „ áIð 	Að€Lð
 	ˆ
×ÑÐ9¸:×;OÑ;O×;TÑ;TÓUØ ˆ
× Ñ Ø*Ø-�v×-Ñ-Ø"˜&Ÿ(™(°Ô3Ø+ôô	
ð	�Jr   r   N)r    Ú	django.dbr   r   r   r   r(   r   r   ú<module>r*      s'   ðñ÷ )òHô�
×$Ñ$õ r   