From 26b437d05a57472d6d7238c61c41801851d9a67f Mon Sep 17 00:00:00 2001 From: Ryan Belgrave Date: Mon, 16 Oct 2017 18:37:10 -0500 Subject: [PATCH] I really should test this locally before pushing --- .../alembic/versions/458762cd0419_create_authn_user.py | 2 +- ingredients_db/test/test_migrations.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ingredients_db/alembic/versions/458762cd0419_create_authn_user.py b/ingredients_db/alembic/versions/458762cd0419_create_authn_user.py index 669d9ad..f718df7 100644 --- a/ingredients_db/alembic/versions/458762cd0419_create_authn_user.py +++ b/ingredients_db/alembic/versions/458762cd0419_create_authn_user.py @@ -31,4 +31,4 @@ def upgrade(): def downgrade(): op.drop_constraint('uq_username_driver', 'authn_users', 'unique') - op.drop_table('users') + op.drop_table('authn_users') diff --git a/ingredients_db/test/test_migrations.py b/ingredients_db/test/test_migrations.py index e18be53..373fc7c 100644 --- a/ingredients_db/test/test_migrations.py +++ b/ingredients_db/test/test_migrations.py @@ -77,6 +77,7 @@ def test_model_and_migration_schemas_are_the_same(self, uri_left, uri_right, ale from ingredients_db.models.public_key import PublicKey from ingredients_db.models.task import Task, TaskableEntity from ingredients_db.models.authn import AuthNUser, AuthNToken + from ingredients_db.models.authz import AuthZPolicy, AuthZRule, AuthZRole # Make sure the imports don't go away Image.mro() @@ -92,6 +93,9 @@ def test_model_and_migration_schemas_are_the_same(self, uri_left, uri_right, ale TaskableEntity.mro() AuthNUser.mro() AuthNToken.mro() + AuthZPolicy.mro() + AuthZRule.mro() + AuthZRole.mro() setup_extensions(uri_right) prepare_schema_from_models(uri_right, Base)