In this case you're going to alter the table for every new version. it must be newVersion == 3 && oldVersion <= 2