From d137a4ccf4e8c50e0dee2bc90840347d0ee3bd42 Mon Sep 17 00:00:00 2001 From: Syrine Neifar <syrine@greenhost.nl> Date: Wed, 18 Jan 2023 16:45:16 +0100 Subject: [PATCH] Remove unused variables --- backend/migrations/versions/7d27395c892a_new_migration.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/migrations/versions/7d27395c892a_new_migration.py b/backend/migrations/versions/7d27395c892a_new_migration.py index 35590b09..7c7dd577 100644 --- a/backend/migrations/versions/7d27395c892a_new_migration.py +++ b/backend/migrations/versions/7d27395c892a_new_migration.py @@ -16,7 +16,6 @@ branch_labels = None depends_on = None def upgrade(): - op.create_table( "app", sa.Column("id", sa.Integer(), nullable=False), @@ -40,7 +39,7 @@ def upgrade(): sa.PrimaryKeyConstraint("user_id", "app_id"), ) - role_table = op.create_table( + op.create_table( "role", sa.Column("id", sa.Integer(), nullable=False), sa.Column("name", sa.String(length=64), nullable=True), @@ -53,7 +52,7 @@ def upgrade(): op.execute("INSERT INTO `role` (id, `name`) VALUES (2, 'user')") op.execute("INSERT INTO `role` (id, `name`) VALUES (3, 'no access')") - oauthclient_app_table = op.create_table('oauthclient_app', + op.create_table('oauthclient_app', sa.Column('oauthclient_id', mysql.VARCHAR(length=64), nullable=False), sa.Column('app_id', mysql.INTEGER(display_width=11), autoincrement=False, nullable=False), sa.ForeignKeyConstraint(['app_id'], ['app.id'], name='oauthclient_app_fk_app_id'), -- GitLab