Fix upgrade for system.sequence table