From 716a6bf41f0a230b2cc71fe871e8f68bddd5c8d1 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 18 Feb 2022 00:08:19 +0100 Subject: [PATCH] Fix migrations redondantes --- .../versions/bd2c1c3d866e_refcomp_orebut.py | 30 ------------------- sco_version.py | 2 +- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/migrations/versions/bd2c1c3d866e_refcomp_orebut.py b/migrations/versions/bd2c1c3d866e_refcomp_orebut.py index 8475cd95..1c54847f 100644 --- a/migrations/versions/bd2c1c3d866e_refcomp_orebut.py +++ b/migrations/versions/bd2c1c3d866e_refcomp_orebut.py @@ -19,31 +19,6 @@ depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.add_column("apc_competence", sa.Column("id_orebut", sa.Text(), nullable=True)) - op.drop_constraint( - "apc_competence_referentiel_id_titre_key", "apc_competence", type_="unique" - ) - op.create_index( - op.f("ix_apc_competence_id_orebut"), - "apc_competence", - ["id_orebut"], - ) - op.add_column( - "apc_referentiel_competences", sa.Column("annexe", sa.Text(), nullable=True) - ) - op.add_column( - "apc_referentiel_competences", - sa.Column("type_structure", sa.Text(), nullable=True), - ) - op.add_column( - "apc_referentiel_competences", - sa.Column("type_departement", sa.Text(), nullable=True), - ) - op.add_column( - "apc_referentiel_competences", - sa.Column("version_orebut", sa.Text(), nullable=True), - ) - op.create_index( op.f("ix_notes_formsemestre_uecoef_formsemestre_id"), "notes_formsemestre_uecoef", @@ -80,15 +55,10 @@ def downgrade(): table_name="notes_formsemestre_uecoef", ) - op.drop_column("apc_referentiel_competences", "version_orebut") - op.drop_column("apc_referentiel_competences", "type_departement") - op.drop_column("apc_referentiel_competences", "type_structure") - op.drop_column("apc_referentiel_competences", "annexe") op.drop_index(op.f("ix_apc_competence_id_orebut"), table_name="apc_competence") op.create_unique_constraint( "apc_competence_referentiel_id_titre_key", "apc_competence", ["referentiel_id", "titre"], ) - op.drop_column("apc_competence", "id_orebut") # ### end Alembic commands ### diff --git a/sco_version.py b/sco_version.py index 1e9561b0..e7456eca 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.1.57" +SCOVERSION = "9.1.58" SCONAME = "ScoDoc"