I have a function in my program using MySQL, and we have decided that a Foreign Key should reference a different table, for more accurate data.
The program works as it is now, but what I want to know is how is the best way to go about changing this, but I am unsure which site to ask this on?
Stack Overflow, Programmers, or Code Review?
EDIT: To clarify, my intention is to decide which direction I should take in correcting this. I avoided clarifying the question because I am not trying to ask the question on Meta, just where I should ask it.
I have one class that is used as the MySQL query functions (MySQL.cs
). All of the queries are in one location. However, all of the references to this class are scattered throughout the rest of the program (MajEq.cs
, Cable.cs
, Testing.cs
, etc.); and I want to know which would be the best way of attempting to handle this correction:
Change the database (i.e. move the FK reference) and then change the MySQL query Class, which will effectively break the rest of the program - leaving empty fields/null references everywhere, and work through those to fix all the missing references
Find all the references in the program, change those, and then fix the MySQL queries, and the database.
The program works now, and "breaking" the program is not an issue at this stage. I want to know which would be the most effective way of tackling this change might be.