sparks
2012-03-30 13:55:09 UTC
I just saw something I don't understand
This happened to some (NOT ALL) of my FK
example I had 2 tables
client and clientprivateinfo
in client clientID is PK and in clientprivateinfo clientID is listed
as FK go to view and you have the nice little line with the references
showing.
I did a backup of the database and when I look now clientID is linked
to other tables with PK but clientprivateinfo no longer has a foreign
key and not linked to client table
1) I messed up something and lost the FK, I don't know how but I am
sure it was something I did.
2) is this fk and link stored in the DB and can it be restored
automatically?
if not I will have to make the clientid a FK again.
since this is something I am now seeing in over 10 tables this is
scary
This happened to some (NOT ALL) of my FK
example I had 2 tables
client and clientprivateinfo
in client clientID is PK and in clientprivateinfo clientID is listed
as FK go to view and you have the nice little line with the references
showing.
I did a backup of the database and when I look now clientID is linked
to other tables with PK but clientprivateinfo no longer has a foreign
key and not linked to client table
1) I messed up something and lost the FK, I don't know how but I am
sure it was something I did.
2) is this fk and link stored in the DB and can it be restored
automatically?
if not I will have to make the clientid a FK again.
since this is something I am now seeing in over 10 tables this is
scary