aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-06-20 12:08:20 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-06-20 12:08:20 -0500
commit98454be7e924b2341b96b1317dfbf8a32fbca607 (patch)
tree4ee94707d1b8b9f6c4ec7a30073772add4b5730a
parent838cde8175f61b41d319cc79808bc2bc519cb1f3 (diff)
downloadmediagoblin-98454be7e924b2341b96b1317dfbf8a32fbca607.tar.lz
mediagoblin-98454be7e924b2341b96b1317dfbf8a32fbca607.tar.xz
mediagoblin-98454be7e924b2341b96b1317dfbf8a32fbca607.zip
What is models_v0.py? An explaination!
This commit sponsored by Alex Hannan-Joyner. Thanks!
-rw-r--r--mediagoblin/db/models_v0.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/mediagoblin/db/models_v0.py b/mediagoblin/db/models_v0.py
index ec51a1f5..bdedec2e 100644
--- a/mediagoblin/db/models_v0.py
+++ b/mediagoblin/db/models_v0.py
@@ -18,6 +18,29 @@
TODO: indexes on foreignkeys, where useful.
"""
+###########################################################################
+# WHAT IS THIS FILE?
+# ------------------
+#
+# Upon occasion, someone runs into this file and wonders why we have
+# both a models.py and a models_v0.py.
+#
+# The short of it is: you can ignore this file.
+#
+# The long version is, in two parts:
+#
+# - We used to use MongoDB, then we switched to SQL and SQLAlchemy.
+# We needed to convert peoples' databases; the script we had would
+# switch them to the first version right after Mongo, convert over
+# all their tables, then run any migrations that were added after.
+#
+# - That script is now removed, but there is some discussion of
+# writing a test that would set us at the first SQL migration and
+# run everything after. If we wrote that, this file would still be
+# useful. But for now, it's legacy!
+#
+###########################################################################
+
import datetime
import sys