Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Code Quality] db->add_column, db->drop_column, db->modify_column improvements
#1
Considering these are specific functions to add, drop, and modify a column respectively, there should be logic that tests whether the column exists. As a side effect, it helps guard against bad plugin development practices of not checking if something exists.

The relevant code in inc/db_mysqli is found between lines 1340 and 1409. Potentially also rename column.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)