From f92751ff9d3b4ce2040ff44852b51b504122f6c4 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Sat, 19 Oct 2013 15:30:11 +0800 Subject: [PATCH] debian/patches/fix-migration2.patch --- debian/patches/fix-migration2.patch | 16 ++++++++++++++++ debian/patches/series | 1 + 2 files changed, 17 insertions(+) create mode 100644 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 -- 2.45.2