Commits

F. Gabriel Gosselin committed b972389

Clarifying remarks for decorators

  • Participants
  • Parent commits dc3c169

Comments (0)

Files changed (1)

south/db/mysql.py

     Deletes the constraints from the database and clears local cache.
     """
     def _column_rm(self, table_name, column_name, *args, **opts):
+        # Delete foreign key constraints
         try:
             self.delete_foreign_key(table_name, column_name)
         except ValueError:
             pass # If no foreign key on column, OK because it checks first
+        # Delete constraints referring to this column
         try:
             reverse = self._lookup_reverse_constraint(table_name, column_name)
             for cname, rtable, rcolumn in reverse:
     Determines existing constraints and copies them to a new column
     """
     def _column_cp(self, table_name, column_old, column_new, *args, **opts):
+        # Copy foreign key constraint
         try:
             constraint = self._find_foreign_constraints(table_name, column_old)[0]
             (ftable, fcolumn) = self._lookup_constraint_references(table_name, constraint)
             pass # No constraint exists so ignore
         except DryRunError:
             pass
+        # Copy constraints referring to this column
         try:
             reverse = self._lookup_reverse_constraint(table_name, column_old)
             for cname, rtable, rcolumn in reverse: