Skip to content

Commit

Permalink
fix table issues
Browse files Browse the repository at this point in the history
  • Loading branch information
salmma committed Jun 26, 2024
1 parent 8f15892 commit ca21812
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
db = SQLAlchemy(app)
migrate = Migrate(app, db)

from app import routes, result_model, benchmark_model, errors
from app import routes, result_model, benchmark_model, errors, generated_circuit_model
from app.controller import register_blueprints
from flask_smorest import Api

Expand Down
28 changes: 28 additions & 0 deletions migrations/versions/13d46ba5b86f_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""empty message
Revision ID: 13d46ba5b86f
Revises: f080730a59e6
Create Date: 2024-06-26 11:57:17.586499
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '13d46ba5b86f'
down_revision = 'f080730a59e6'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_foreign_key(None, 'result', 'generated__circuit', ['generated_circuit_id'], ['id'])
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'result', type_='foreignkey')
# ### end Alembic commands ###
5 changes: 3 additions & 2 deletions qiskit-service.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ******************************************************************************
# Copyright (c) 2020 University of Stuttgart
# Copyright (c) 2024 University of Stuttgart
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand All @@ -19,4 +19,5 @@

from app import app, db
from app.result_model import Result
from app.benchmark_model import Benchmark
from app.benchmark_model import Benchmark
from app.generated_circuit_model import Generated_Circuit

0 comments on commit ca21812

Please sign in to comment.