This commit is contained in:
Cayo Puigdefabregas 2022-04-08 17:05:50 +02:00
parent 79672cc9ff
commit f6c332cdbf
2 changed files with 3 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class UploadSnapshotForm(FlaskForm, SnapshotMix):
if commit:
db.session.commit()
return response
return self.result
class NewDeviceForm(FlaskForm):

View File

@ -48,7 +48,9 @@ def upgrade():
sa.PrimaryKeyConstraint('id'),
schema=f'{get_inv()}',
)
op.execute(f"CREATE SEQUENCE {get_inv()}.snapshot_errors_seq START 1;")
def downgrade():
op.drop_table('snapshot_errors', schema=f'{get_inv()}')
op.execute(f"DROP SEQUENCE {get_inv()}.snapshot_errors_seq;")