I have a column of order_id in billing table once this order_id exists (means not NULL) , then it must never be updateable again to NULL or to any other value.
I have a huge bug that somehow NULLing this value for some records.
1.I am doing QA for 1 month now and cannot find what sp is updating the field to NULL. I covered all the UI and business logic and found nothing. is there any better way to find what updating certain field to null?
2.Is there an SQL way like constraint that puts a guard on field once it has value and will throw an error if anything will try to update it.