@@ -0,0 +1,1073 @@
+# Copyright (C) 2016 Google Inc.%0A# Licensed under http://www.apache.org/licenses/LICENSE-2.0 %3Csee LICENSE file%3E%0A%0A%22%22%22Add missing snapshot relationships.%0A%0ACreate Date: 2016-12-15 00:49:56.561951%0A%22%22%22%0A# disable Invalid constant name pylint warning for mandatory Alembic variables.%0A# pylint: disable=invalid-name%0A%0Afrom alembic import op%0A%0A%0A# revision identifiers, used by Alembic.%0Arevision = '587e41a1593d'%0Adown_revision = '2a5a39600741'%0A%0A%0Adef upgrade():%0A  %22%22%22Upgrade database schema and/or data, creating a new revision.%22%22%22%0A  op.execute(%0A      %22%22%22%0A      insert ignore into relationships (%0A          modified_by_id,%0A          created_at,%0A          updated_at,%0A          source_id,%0A          source_type,%0A          destination_id,%0A          destination_type%0A      )%0A      select%0A          modified_by_id,%0A          created_at,%0A          updated_at,%0A          parent_id as source_id,%0A          parent_type as source_type,%0A          child_id as destination_id,%0A          child_type as destination_type%0A      from snapshots%0A      %22%22%22%0A  )%0A%0A%0Adef downgrade():%0A  %22%22%22Ignore downgrade.%22%22%22%0A

Add missing snapshot relationships