Commits

Jack Diederich committed 9f69770

constraint cache invalidations for psycopyg2

  • Participants
  • Parent commits 94e83ed

Comments (0)

Files changed (1)

File south/db/postgresql_psycopg2.py

     
     backend_name = "postgres"
 
+    @generic.copy_column_constraints
+    @generic.delete_column_constraints
     def rename_column(self, table_name, old, new):
         if old == new:
             # Short-circuit out
             self.quote_name(old),
             self.quote_name(new),
         ))
-    
+
+    @generic.invalidate_table_constraints
     def rename_table(self, old_table_name, table_name):
         "will rename the table and an associated ID sequence and primary key index"
         # First, rename the table