From dc16287e346c9e34b86c4780508a9eb32bf2c89a Mon Sep 17 00:00:00 2001 From: Peter Weber Date: Thu, 11 Aug 2022 13:57:17 +0200 Subject: [PATCH] alembic: inital branch Co-Authored-by: Peter Weber --- pyproject.toml | 3 ++ .../alembic/c658fa8e9fa5_inital_branch.py | 33 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 rero_mef/alembic/c658fa8e9fa5_inital_branch.py diff --git a/pyproject.toml b/pyproject.toml index 1521b3c3..f4b857a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,6 +106,9 @@ rero_mef = "rero_mef.theme.views:blueprint" [tool.poetry.plugins."invenio_config.module"] rero_mef = "rero_mef.config" +[tool.poetry.plugins."invenio_db.alembic"] +rero_ils = "rero_mef:alembic" + [tool.poetry.plugins."invenio_db.models"] mef = "rero_mef.agents.mef.models" viaf = "rero_mef.agents.viaf.models" diff --git a/rero_mef/alembic/c658fa8e9fa5_inital_branch.py b/rero_mef/alembic/c658fa8e9fa5_inital_branch.py new file mode 100644 index 00000000..af6d4967 --- /dev/null +++ b/rero_mef/alembic/c658fa8e9fa5_inital_branch.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# +# RERO MEF +# Copyright (C) 2022 RERO +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +"""Inital branch.""" + + +# revision identifiers, used by Alembic. +revision = 'c658fa8e9fa5' +down_revision = '0bea81e3b83e' +branch_labels = () +depends_on = None + + +def upgrade(): + """Upgrade database.""" + + +def downgrade(): + """Downgrade database."""