Lines Matching refs:second_field
47 def create_unique_index(manager, pivot_table, first_field, second_field):
50 (index_name, pivot_table, first_field, second_field))
85 second_field, second_table, create_unique):
86 delete_duplicates(manager, pivot_table, first_field, second_field)
88 delete_invalid_foriegn_keys(manager, pivot_table, second_field,
94 create_unique_index(manager, pivot_table, second_field, first_field)
98 create_foreign_key_constraint(manager, pivot_table, second_field,
102 def reverse_cleanup_m2m_pivot(manager, pivot_table, first_field, second_field,
104 drop_foreign_key_constraint(manager, pivot_table, second_field)
107 drop_unique_index(manager, pivot_table, second_field)
125 for (table, first_field, first_table, second_field, second_table,
128 second_field, second_table, create_unique)
132 for (table, first_field, first_table, second_field, second_table,
134 reverse_cleanup_m2m_pivot(manager, table, first_field, second_field,