Comment 5 for bug 1399768

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/151931
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=676457bdca63260ecf675848e34cb01e34822051
Submitter: Jenkins
Branch: master

commit 676457bdca63260ecf675848e34cb01e34822051
Author: Dave Chen <email address hidden>
Date: Mon Feb 2 04:16:30 2015 +0800

    Fix the syntax issue on creating table `endpoint_group`

    Migration of `endpoint_filter` to version 2 will fail when the backend
    DB is MYSQL instead of SQLite, `primary_key` need to be explicitly specified
    in order to setup the ForeignKey relationship between two tables.

    Current testcase `keystone.tests.test_sql_migrate_extensions.
    EndpointFilterExtension.test_upgrade` can pass the verification since SQLite
    don't check this when emitting CREATE statements for tables.

    Closes-Bug: #1399768
    Change-Id: I82b3fddb921c7c2d2fdecf8add981da37f5319f7