o
    :Zce                     @   s6   d dl mZ d dlmZ dddZdd Zd	d
 ZdS )    )apps)modelsFTc                 C   sH   |r|j jddd}n|j jdd}|r|j  nd}|j| |||S )z
    Return a list of the SQL statements used to flush the database.

    If only_django is True, only include the table names that have associated
    Django models and are in INSTALLED_APPS .
    TF)only_existinginclude_views)r    )introspectiondjango_table_namestable_namessequence_listops	sql_flush)style
connectiononly_djangoreset_sequencesallow_cascadetablesseqsr   r   P/var/www/chikooza/env/lib/python3.10/site-packages/django/core/management/sql.pyr      s
   r   c              	   K   T   t  D ]#}|jd u rq| dkrtd|j  tjjjd||| ||d| qd S )N   z/Running pre-migrate handlers for application %ssender
app_config	verbosityinteractiveusingr   )	r   get_app_configsmodels_moduleprintlabelr   signalspre_migratesendr   r   dbkwargsr   r   r   r   emit_pre_migrate_signal      

r'   c              	   K   r   )Nr   z0Running post-migrate handlers for application %sr   r   )	r   r   r   r   r    r   r!   post_migrater#   r$   r   r   r   emit_post_migrate_signal%   r(   r*   N)FTF)django.appsr   	django.dbr   r   r'   r*   r   r   r   r   <module>   s
    
