Module ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For TupleStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad attr NameLoad Call NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index NameLoad attr TupleLoad NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore IfExp NameLoad Str Str Return BinOpMod NameLoad Dict Str Str Str NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad Return IfExp NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore Str For TupleStore NameStore NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr ListComp NameLoad comprehension NameStore NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body If NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore TupleLoad If UnaryOpNot Call NameLoad NameLoad Str NameLoad body If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad body Assign NameStore Call NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str Str orelse If Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str AugAssignAdd NameStore Str Assign NameStore NameLoad orelse If BoolOpOr BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr body AugAssignAdd NameStore Str If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad AttributeLoad NameLoad attr attr attr If Call NameLoad NameLoad Str body For NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body If Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr NameLoad NameLoad Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return BinOpMod NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad orelse If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call NameLoad Str Return If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad Assign NameStore ListLoad If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad BinOpMod AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr NameLoad orelse For TupleStore NameStore NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Return ListLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list
N/A __future__ print_function N/A datetime django.db connection models django.core.management.color no_style django.db.utils DatabaseError south.db generic south.utils.py3 string_types DatabaseOperations N/A N/A generic DatabaseOperations N/A N/A backend_name firebird N/A alter_string_set_type ALTER %(column)s TYPE %(type)s N/A alter_string_set_default ALTER %(column)s SET DEFAULT %(default)s; N/A alter_string_drop_null N/A add_column_string ALTER TABLE %s ADD %s; N/A delete_column_string ALTER TABLE %s DROP %s; N/A rename_table_sql N/A allows_combined_alters False N/A has_booleans False _fill_constraint_cache N/A N/A self db_name table_name N/A N/A N/A N/A N/A N/A self _constraint_cache setdefault db_name N/A N/A N/A N/A N/A self _constraint_cache N/A db_name N/A table_name N/A N/A rows N/A N/A self execute N/A 
            SELECT
                rc.RDB$CONSTRAINT_NAME,
                rc.RDB$CONSTRAINT_TYPE,
                cc.RDB$TRIGGER_NAME
            FROM rdb$relation_constraints rc
            JOIN rdb$check_constraints cc
            ON rc.rdb$constraint_name = cc.rdb$constraint_name
            WHERE rc.rdb$constraint_type = 'NOT NULL'
            AND rc.rdb$relation_name = '%s'
             table_name N/A N/A constraint kind column rows N/A N/A N/A N/A N/A N/A N/A self _constraint_cache N/A db_name N/A table_name setdefault column N/A set N/A N/A N/A N/A N/A N/A N/A self _constraint_cache N/A db_name N/A table_name N/A column add N/A kind constraint N/A N/A _alter_column_set_null N/A N/A self table_name column_name is_null N/A N/A N/A sql 
            UPDATE RDB$RELATION_FIELDS SET RDB$NULL_FLAG = %(null_flag)s
            WHERE RDB$FIELD_NAME = '%(column)s'
            AND RDB$RELATION_NAME = '%(table_name)s'
         N/A null_flag N/A is_null NULL 1 N/A N/A sql N/A null_flag column table_name null_flag N/A N/A column_name upper N/A N/A table_name upper N/A _column_has_default N/A N/A self params N/A N/A N/A sql 
            SELECT a.RDB$DEFAULT_VALUE
            FROM RDB$RELATION_FIELDS a
            WHERE a.RDB$FIELD_NAME = '%(column)s'
            AND a.RDB$RELATION_NAME = '%(table_name)s'
         N/A value N/A N/A self execute N/A sql params N/A N/A value True False N/A _alter_set_defaults N/A N/A self field name params sqls N/A N/A N/A Subcommand of alter_column that sets default values (overrideable) N/A N/A N/A self _column_has_default params N/A N/A N/A N/A sqls append N/A N/A ALTER COLUMN %s DROP DEFAULT N/A N/A N/A self quote_name name N/A N/A create_table N/A N/A self table_name fields N/A N/A N/A columns N/A N/A autoinc_sql N/A N/A field_name field fields N/A N/A N/A field _suppress_default True N/A col N/A N/A self column_sql table_name field_name field N/A N/A col N/A N/A N/A N/A N/A columns append col N/A N/A isinstance field N/A models AutoField N/A N/A field_name N/A N/A field db_column N/A field column N/A autoinc_sql N/A N/A N/A connection ops autoinc_sql table_name field_name N/A N/A N/A self execute N/A N/A self create_table_sql N/A table columns N/A N/A self quote_name table_name N/A N/A ,  join N/A col N/A col columns col N/A autoinc_sql N/A N/A N/A N/A self execute N/A autoinc_sql N/A 0 N/A N/A N/A self execute N/A autoinc_sql N/A 1 N/A N/A generic invalidate_table_constraints rename_table N/A N/A self old_table_name table_name N/A N/A N/A 
        Renames table is not supported by firebird.
        This involve recreate all related objects (store procedure, views, triggers, etc)
         N/A N/A delete_table N/A N/A self table_name cascade N/A False N/A N/A 
        Deletes the table 'table_name'.
        Firebird will also delete any triggers associated with the table.
         N/A N/A N/A N/A super DatabaseOperations self delete_table table_name cascade False N/A sql N/A N/A N/A connection ops drop_sequence_sql table_name N/A sql N/A N/A N/A N/A N/A N/A self execute sql N/A N/A N/A N/A N/A N/A generic invalidate_table_constraints column_sql N/A N/A self table_name field_name field tablespace with_name field_prepared N/A True False N/A N/A 
        Creates the SQL snippet for a column. Used by add_column and add_table.
         N/A N/A field_prepared N/A N/A N/A N/A field set_attributes_from_name field_name N/A N/A hasattr field south_init N/A N/A N/A N/A field south_init N/A field N/A N/A self _field_sanity field N/A N/A N/A sql N/A N/A field db_type connection N/A N/A self _get_connection N/A N/A N/A TypeError N/A N/A sql N/A N/A field db_type N/A sql N/A N/A with_name N/A N/A field_output N/A N/A N/A self quote_name N/A field column sql N/A N/A field_output N/A sql N/A N/A field primary_key N/A N/A N/A N/A field_output append NOT NULL PRIMARY KEY N/A N/A N/A field unique N/A N/A N/A N/A field_output append UNIQUE N/A sql N/A N/A join field_output N/A sqlparams N/A N/A N/A N/A getattr field _suppress_default False N/A N/A N/A N/A field has_default N/A N/A default N/A N/A field get_default N/A N/A default None N/A N/A N/A callable default N/A N/A default N/A default N/A N/A isinstance default string_types N/A N/A default N/A '%s' N/A N/A default replace ' '' N/A N/A N/A isinstance default N/A N/A datetime date N/A datetime time N/A datetime datetime N/A N/A default N/A '%s' default N/A N/A N/A isinstance default bool N/A N/A default N/A int default N/A N/A isinstance default string_types N/A N/A default N/A N/A default replace % %% N/A sql  DEFAULT %s N/A sqlparams default N/A N/A N/A N/A N/A N/A field null N/A field blank N/A N/A N/A field get_default N/A N/A N/A N/A field empty_strings_allowed N/A N/A N/A N/A self _get_connection features interprets_empty_strings_as_nulls N/A N/A sql  DEFAULT '' N/A N/A N/A N/A field primary_key N/A N/A field null N/A N/A sql  NOT NULL N/A N/A N/A field rel N/A self supports_foreign_keys N/A N/A N/A N/A self add_deferred_sql N/A N/A self foreign_key_sql table_name N/A field column N/A N/A N/A N/A field rel to _meta db_table N/A N/A N/A N/A N/A N/A field rel to _meta get_field N/A N/A field rel field_name column N/A N/A hasattr field post_create_sql N/A N/A stmt N/A N/A field post_create_sql N/A no_style table_name N/A N/A N/A N/A self add_deferred_sql stmt N/A N/A N/A field rel N/A N/A N/A hasattr N/A N/A N/A self _get_connection creation sql_indexes_for_field N/A N/A model N/A N/A self mock_model FakeModelForGISCreation table_name N/A stmt N/A N/A N/A N/A N/A self _get_connection creation sql_indexes_for_field model field N/A no_style N/A N/A N/A N/A self add_deferred_sql stmt N/A sql N/A N/A N/A sql sqlparams N/A N/A None N/A _drop_constraints N/A N/A self table_name name field N/A N/A N/A N/A self has_check_constraints N/A N/A check_constraints N/A N/A self _constraints_affecting_columns table_name N/A name CHECK N/A constraint check_constraints N/A N/A N/A N/A self execute N/A N/A self delete_check_sql N/A table constraint N/A N/A self quote_name table_name N/A N/A self quote_name constraint N/A unique_constraint N/A list N/A N/A self _constraints_affecting_columns table_name N/A name UNIQUE N/A N/A N/A field unique N/A unique_constraint N/A N/A N/A N/A self create_unique table_name N/A name N/A N/A N/A N/A N/A field unique unique_constraint N/A N/A N/A N/A self delete_unique table_name N/A name N/A N/A N/A N/A N/A self delete_foreign_key table_name name N/A N/A N/A ValueError N/A N/A N/A alter_column N/A N/A self table_name name field explicit_name ignore_constraints N/A True False N/A N/A 
        Alters the given column name so it will match the given field.
        Note that conversion between the two by the database must be possible.
        Will not automatically add _id by default; to have this behavour, pass
        explicit_name=False.

        @param table_name: The name of the table to add the column to
        @param name: The name of the column to alter
        @param field: The new field definition to use
         N/A N/A self dry_run N/A N/A N/A self debug N/A N/A N/A print    - no dry run output for alter_column() due to dynamic DDL, sorry N/A N/A N/A hasattr field south_init N/A N/A N/A N/A field south_init N/A N/A N/A field set_attributes_from_name name N/A N/A explicit_name N/A N/A name N/A field column N/A N/A N/A field column name N/A N/A ignore_constraints N/A N/A N/A N/A self _drop_constraints table_name name field N/A params N/A column type table_name N/A N/A self quote_name name N/A N/A self _db_type_for_alter_column field table_name N/A sqls N/A N/A sqls_extra N/A N/A N/A N/A params N/A type None N/A N/A N/A N/A sqls append N/A N/A N/A self alter_string_set_type params N/A N/A N/A N/A self _alter_add_column_mods field name params sqls N/A N/A N/A sqls_extra append N/A N/A self _alter_column_set_null table_name name N/A field null N/A N/A N/A self _alter_set_defaults field name params sqls N/A N/A self allows_combined_alters N/A N/A N/A sqls values N/A list N/A zip sqls N/A N/A N/A self execute N/A ALTER TABLE %s %s; N/A N/A N/A self quote_name table_name N/A N/A ,  join sqls N/A N/A generic flatten values N/A N/A N/A sql values sqls N/A N/A N/A N/A N/A N/A self execute N/A ALTER TABLE %s %s; N/A N/A N/A self quote_name table_name sql values N/A N/A N/A DatabaseError N/A e N/A N/A N/A print e N/A sql sqls_extra N/A N/A N/A N/A self execute sql N/A N/A ignore_constraints N/A N/A N/A N/A field rel N/A self supports_foreign_keys N/A N/A N/A N/A self execute N/A N/A self foreign_key_sql table_name N/A field column N/A N/A N/A N/A field rel to _meta db_table N/A N/A N/A N/A N/A N/A field rel to _meta get_field N/A N/A field rel field_name column N/A N/A generic invalidate_table_constraints rename_column N/A N/A self table_name old new N/A N/A N/A N/A old new N/A N/A N/A N/A N/A N/A self execute N/A ALTER TABLE %s ALTER %s TO %s; N/A N/A N/A self quote_name table_name N/A N/A self quote_name old N/A N/A self quote_name new N/A N/A generic copy_column_constraints N/A generic delete_column_constraints N/A