From: Thomas Goirand Date: Sat, 19 Oct 2013 07:30:11 +0000 (+0800) Subject: debian/patches/fix-migration2.patch X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f92751ff9d3b4ce2040ff44852b51b504122f6c4;p=openstack-build%2Fneutron-build.git debian/patches/fix-migration2.patch --- diff --git a/debian/patches/fix-migration2.patch b/debian/patches/fix-migration2.patch new file mode 100644 index 000000000..bb64e5a5f --- /dev/null +++ b/debian/patches/fix-migration2.patch @@ -0,0 +1,16 @@ +Description: Fix miagration2 +Author: Thomas Goirand +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): diff --git a/debian/patches/series b/debian/patches/series index 818e02076..11f6e17d1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ better-config-default.patch Use_proper_argument_in_add_column_method_call.patch +fix-migration2.patch