add reset snapshots script

hopefully won't need after #381 and #380 are resolved
This commit is contained in:
Collin M. Barrett 2018-08-23 09:01:45 -05:00
parent 88ababc8d3
commit b77811b246

View file

@ -0,0 +1,7 @@
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE snapshots_rules;
TRUNCATE snapshots;
TRUNCATE rules;
SET FOREIGN_KEY_CHECKS = 1;
ALTER TABLE snapshots AUTO_INCREMENT = 1;
ALTER TABLE rules AUTO_INCREMENT = 1;