]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
debian/patches/fix-migration2.patch
authorThomas Goirand <thomas@goirand.fr>
Sat, 19 Oct 2013 07:30:11 +0000 (15:30 +0800)
committerThomas Goirand <thomas@goirand.fr>
Sat, 19 Oct 2013 07:30:11 +0000 (15:30 +0800)
debian/patches/fix-migration2.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/fix-migration2.patch b/debian/patches/fix-migration2.patch
new file mode 100644 (file)
index 0000000..bb64e5a
--- /dev/null
@@ -0,0 +1,16 @@
+Description: Fix miagration2
+Author: Thomas Goirand <zigo@debian.org>
+Bug-Debian: http://bugs.debian.org/726719
+Last-Update: 2013-10-19
+
+--- neutron-2013.2.orig/neutron/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py
++++ neutron-2013.2/neutron/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py
+@@ -54,7 +54,7 @@ def upgrade(active_plugins=None, options
+     op.add_column('routers', sa.Column('enable_snat', sa.Boolean(),
+                                        nullable=False, server_default='1'))
+     # Set enable_snat to True for existing routers
+-    op.execute("UPDATE routers SET enable_snat=True")
++    op.execute("UPDATE routers SET enable_snat='True'")
+ def downgrade(active_plugins=None, options=None):
index 818e020767f0f0d886b5bb352a81ceb08db7e79f..11f6e17d13246deee80f8e4a1e56ce599bff857e 100644 (file)
@@ -1,2 +1,3 @@
 better-config-default.patch
 Use_proper_argument_in_add_column_method_call.patch
+fix-migration2.patch