aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/migrations.py
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2011-09-23 02:35:57 +0200
committerJoar Wandborg <git@wandborg.com>2011-09-23 02:35:57 +0200
commit93bdab9daad3ae431afd41a2efaefae05a555d88 (patch)
tree2586f778bbba650600c1d8a1480230e32a15bb34 /mediagoblin/db/migrations.py
parent9122a9d047765574bb0d11436522a6c868da86cc (diff)
downloadmediagoblin-93bdab9daad3ae431afd41a2efaefae05a555d88.tar.lz
mediagoblin-93bdab9daad3ae431afd41a2efaefae05a555d88.tar.xz
mediagoblin-93bdab9daad3ae431afd41a2efaefae05a555d88.zip
Multimedia support - Commiting from a not yet finished state - Details below
* DONE Initially testing with arista ** DONE Video display templates *** TODO Multi-browser support ** TODO Video thumbnails ** TODO Link to original video ** TODO Video cropping Also contains a lot of "debug" print's
Diffstat (limited to 'mediagoblin/db/migrations.py')
-rw-r--r--mediagoblin/db/migrations.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py
index 755f49c5..01df7208 100644
--- a/mediagoblin/db/migrations.py
+++ b/mediagoblin/db/migrations.py
@@ -107,3 +107,11 @@ def user_add_forgot_password_token_and_expires(database):
{'fp_token_expire': {'$exists': False}},
{'$set': {'fp_token_expire': None}},
multi=True)
+
+
+@RegisterMigration(7)
+def media_type_image_to_multimedia_type_image(database):
+ database['media_entries'].update(
+ {'media_type': 'image'},
+ {'$set': {'media_type': 'mediagoblin.media_types.image'}},
+ multi=True)