old_contents: #!/usr/bin/env python2.4
  #
  # Copyright (c) 2007 rPath, Inc.
  #
  # This program is distributed under the terms of the Common Public License,
  # version 1.0. A copy of this license should have been distributed with this
  # source file in a file called LICENSE. If it is not present, the license
  # is always available at http://www.rpath.com/permanent/licenses/CPL-1.0.
  #
  # This program is distributed in the hope that it will be useful, but
  # without any warranty; without even the implied warranty of merchantability
  # or fitness for a particular purpose. See the Common Public License for
  # full details.
  #
  
  # list of tables we migrate, in order
  TableList = [
      'LatestMirror',
      'Branches',
      'Items',
      'Versions',
      'Labels',
      'LabelMap',
      'Flavors',
      'FlavorMap',
      'FlavorScores',
      'Users',
      'UserGroups',
      'UserGroupMembers',
      'EntitlementGroups',
      'Entitlements',
      'EntitlementOwners',
      'EntitlementAccessMap',
      'Permissions',
      'FileStreams',
      'Nodes',
      'ChangeLogs',
      'Instances',
      'TroveInfo',
      'Dependencies',
      'Metadata',
      'MetadataItems',
      'PGPKeys',
      'PGPFingerprints',
      'Provides',
      'Requires',
      'TroveRedirects',
      'TroveTroves',
      'TroveFiles',
      'commitlock',
      'usergroupinstancescache',
      'checktrovecache',
      'filepaths',
      'usergrouptroves',
      'usergroupallpermissions',
      'usergroupalltroves',
      'latestcache'
      ]
  
new_contents: #!/usr/bin/env python2.4
  #
  # Copyright (c) 2007 rPath, Inc.
  #
  # This program is distributed under the terms of the Common Public License,
  # version 1.0. A copy of this license should have been distributed with this
  # source file in a file called LICENSE. If it is not present, the license
  # is always available at http://www.rpath.com/permanent/licenses/CPL-1.0.
  #
  # This program is distributed in the hope that it will be useful, but
  # without any warranty; without even the implied warranty of merchantability
  # or fitness for a particular purpose. See the Common Public License for
  # full details.
  #
  
  # list of tables we migrate, in order
  TableList = [
      'LatestMirror',
      'CommitLock',
      'Branches',
      'Items',
      'Versions',
      'Labels',
      'LabelMap',
      'Flavors',
      'FlavorMap',
      'FlavorScores',
      'Users',
      'UserGroups',
      'UserGroupMembers',
      'EntitlementGroups',
      'Entitlements',
      'EntitlementOwners',
      'EntitlementAccessMap',
      'Permissions',
      'FileStreams',
      'Nodes',
      'ChangeLogs',
      'Instances',
      'TroveInfo',
      'Dependencies',
      'Metadata',
      'MetadataItems',
      'PGPKeys',
      'PGPFingerprints',
      'Provides',
      'Requires',
      'TroveRedirects',
      'TroveTroves',
      'FilePaths',
      'TroveFiles',
      'CheckTroveCache',
      'UserGroupTroves',
      'UserGroupInstancesCache',
      'UserGroupAllPermissions',
      'UserGroupAllTroves',
      'LatestCache'
      ]
  
subject: fix table migration order (CNY-2534)