views:

53

answers:

2

How do App Engine numbers work? Are they only integers? Can I use floats? Can I reuse old version numbers?

+1  A: 

You can increment it when you pushing a new release. See below for reference.

When you build a new major release of an application that is already running on App Engine, you can upload the new release as a new version. The old version will continue to serve users until you switch to the new version. You can test the new version on App Engine while the old version is still running.

Edited: Didn't remove my answer because there're some good comments on it.

Henrik P. Hessel
That's incorrect. You can use letters, digits and hyphens in the version. No need for integers.
WoLpH
@Henrik: For the GAE app that I have in SVN, I use the repository revision number. If I was using git I suppose I'd use a checksum, in which case I'd prefix it with what you suggest, an integer incremented for each release uploaded.
Steve Jessop
+5  A: 

From the manual:

http://code.google.com/appengine/docs/python/config/appconfig.html#Required_Elements

A version specifier for the application code. App Engine retains a copy of your application for each version used. An administrator can change which major version of the application is default using Administration Console, and can test non-default versions before making them default. The version specifier can contain letters, digits, and hyphens.

Each version of an application retains its own copy of app.yaml. When an application is uploaded, the version mentioned in the app.yaml file being uploaded is the version that gets created or replaced by the upload.

WoLpH
+1 Never knew ..thanks
Henrik P. Hessel
@Henrik P. Hessel: your answer still has some merit though. Atleast prefixing with integers makes sorting a lot easier for your own management :)
WoLpH
I never used anything else than Integers on the GAE. Using A, B, C and so on (or even strings) just doesn't feel natural.
Henrik P. Hessel