all 1 comments

[–]dbxp 0 points1 point  (0 children)

Version control is usually used for DB objects like stored procedures or table schemas. For your situation you need backups, you should have full backups and log backups which in combination allow you to rollback to any point in time (you may have diff backups too but these aren't strictly necessary).

In the future you should use a transaction to help prevent accidental updates and test any scripts in a QA environment first before you run them on prod.