Logo Search packages:      
Sourcecode: ibid version File versions  Download package

def ibid::db::versioned_schema::VersionedSchema::_mysql_constraint_createstring (   self,
  constraint 
) [private]

Generate the description of a constraint for insertion into a CREATE
string

Definition at line 139 of file versioned_schema.py.

00139                                                         :
        """
        Generate the description of a constraint for insertion into a CREATE
        string
        """
        names = []
        for column in constraint.columns:
            if isinstance(column.type, IbidUnicodeText):
                names.append('"%s"(%i)'
                             % (column.name, column.type.index_length))
            else:
                names.append(column.name)

        return ', '.join(names)

    def _create_table(self):


Generated by  Doxygen 1.6.0   Back to index