F. Gabriel Gosselin avatar F. Gabriel Gosselin committed b972389

Clarifying remarks for decorators

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:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.