@@ -0,0 +1,856 @@
+# Copyright (C) 2017 Google Inc.%0A# Licensed under http://www.apache.org/licenses/LICENSE-2.0 %3Csee LICENSE file%3E%0A%0A%22%22%22%0AAdd slug to revisions%0A%0ACreate Date: 2017-02-24 12:51:02.131671%0A%22%22%22%0A# disable Invalid constant name pylint warning for mandatory Alembic variables.%0A# pylint: disable=invalid-name%0A%0Aimport sqlalchemy as sa%0Afrom alembic import op%0A%0A# revision identifiers, used by Alembic.%0Arevision = %224c5be77c5da3%22%0Adown_revision = %22341f8a645b2f%22%0A%0A%0Adef upgrade():%0A  %22%22%22Add resource_slug to revisions table.%22%22%22%0A  op.add_column(%0A      %22revisions%22,%0A      sa.Column(%22resource_slug%22, sa.String(length=250), nullable=True)%0A  )%0A  op.create_index(%0A      %22ix_revisions_resource_slug%22,%0A      %22revisions%22,%0A      %5B%22resource_slug%22%5D,%0A      unique=False,%0A  )%0A%0A%0Adef downgrade():%0A  %22%22%22Remove resource_slug from revisions table.%22%22%22%0A  op.drop_column(%22revisions%22, %22resource_slug%22)%0A

Add resource_slug to revisions table