File: //opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/sqlite.pyc
�
�M!Vc           @   sF   d  d l  m Z d d l m Z d d l Z d e f d �  �  YZ d S(   i   (   t   utili   (   t   DefaultImpli����Nt
   SQLiteImplc           B   sA   e  Z d  Z e Z d �  Z d �  Z d �  Z d �  Z d �  Z	 RS(   t   sqlitec         C   s0   x) | j  D] } | d d k r
 t Sq
 Wt Sd S(   s�   Return True if the given :class:`.BatchOperationsImpl`
        would need the table to be recreated and copied in order to
        proceed.
        Normally, only returns True on SQLite when operations other
        than add_column are present.
        i    t
   add_columnt   create_indext
   drop_indexN(   R   R   R   (   t   batcht   Truet   False(   t   selft   batch_opt   op(    (    sC   /opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/sqlite.pyt   requires_recreate_in_batch   s    	c         C   sA   | j  d  k r t d � � n | j  |  � r= t j d � n  d  S(   Ns5   No support for ALTER of constraints in SQLite dialects>