generate table version check scripts