Permalink
Browse files

spoke about danger of downgrade with data migrations

  • Loading branch information...
1 parent be8b46a commit 05f25031ac2dde7bce27c52bb168c1a611174349 @rwilcox committed Mar 11, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 tg21_sample_data/websetup/bootstrap.py
@@ -52,5 +52,10 @@ def bootstrap(command, conf, vars):
# a setting and maybe do nothing if it's set a certain way)
# So, we load the data migrations from websetup/bootstrap_data/bootstrap_*.py
- # and execute each module's upgrade() or downgrade function as required
+ # and execute each module's upgrade() or downgrade() function as required
+ #
+ # Having spoken about downgrade(), it's dangerous: if you have data in your application
+ # that reference those records with foriegn keys, you risk leaving those pointing objects
+ # dangling that reference. So be careful, but it's there.
+ #
DataMigration.run_all(conf)

0 comments on commit 05f2503

Please sign in to comment.