Yes.

Have a persistent entity, which has a persistent field which stores
the latest deployed version (string) of your application.

In your application, have a string constant which is to be the
deployed version string.

After each instance of your application starts, have it compare its
version string with that persisted(*). If they are different or there
is no such version persistent entity yet:
  ·  do your persistent entity clearing
  ·  update (or persist if not yet existing) the version string
persistent entity field.

Enjoy?

(*)
You can do this from within your app, by a cron job, or by a task
launched by your app at start-up.


On Nov 1, 3:21 pm, John Tadros <[email protected]> wrote:
> Dear All,
>
> I am using GAE to build an application Upon deploying a new version, I
> want to run some code that clears some tables in the database.
> So is there any way I can detect when a new version is deployed ?
>
> Best Regards
> JOhn

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to