Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-03-12 15:39:41 -0800
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-03-26 11:39:08 -0700
commitddbe3fef8ce47eef057e37d4c6d878abc055121a (patch)
tree45d4afda5d522649264bbeef71b500a53b06bea2
parentefeb1fef99f138a905cbed76482dd7965c97a4da (diff)
Archivalook plugin initial migration.
* mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py: New file.
-rw-r--r--mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py b/mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py
new file mode 100644
index 00000000..0dfa2ac1
--- /dev/null
+++ b/mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py
@@ -0,0 +1,32 @@
+"""ArchivaLook plugin initial migration
+
+Revision ID: b10b5f822789
+Revises: 52bf0ccbedc1
+Create Date: 2016-03-12 23:37:51.551856
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'b10b5f822789'
+down_revision = '52bf0ccbedc1'
+branch_labels = ('archivalook_plugin',)
+depends_on = None
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.create_table(
+ 'archivalook__featured_media',
+ sa.Column('id', sa.Integer(), nullable=False),
+ sa.Column('media_entry_id', sa.Integer(), nullable=False),
+ sa.Column('display_type', sa.Unicode(), nullable=False),
+ sa.Column('order', sa.Integer(), nullable=False),
+ sa.ForeignKeyConstraint(['media_entry_id'],
+ ['core__media_entries.id']),
+ sa.PrimaryKeyConstraint('id'))
+
+
+def downgrade():
+ op.drop_table('archivalook__featured_media')