"""Sign-up codes and email sign-in codes, gone. Both were the app doing an identity provider's job. Sign-in is through sso.pedshub.com now: it takes the email, sends the code, checks it, and knows about second factors — none of which this app should be reimplementing, and two of which it never did. invite_codes held three rows, all of them spent or stale; login_codes held none. The dump taken beside this change has both if anybody ever wants to know who was invited. Revision ID: r7b8c9d0e1f2 Revises: q6a7b8c9d0e1 """ from alembic import op revision = "r7b8c9d0e1f2" down_revision = "q6a7b8c9d0e1" branch_labels = None depends_on = None def upgrade(): op.execute("DROP TABLE IF EXISTS login_codes") op.execute("DROP TABLE IF EXISTS invite_codes") def downgrade(): # The tables can be recreated from the models in git history; their # contents cannot, and inventing an invite is worse than not having one. pass