Source code for aiida.backends.djsite.db.migrations.0034_drop_node_columns_nodeversion_public

# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved.                     #
# This file is part of the AiiDA code.                                    #
#                                                                         #
# The code is hosted on GitHub at https://github.com/aiidateam/aiida-core #
# For further information on the license, see the LICENSE.txt file        #
# For further information please visit http://www.aiida.net               #
###########################################################################
# pylint: disable=invalid-name,too-few-public-methods
"""Drop the columns `nodeversion` and `public` from the `DbNode` model."""

# Remove when https://github.com/PyCQA/pylint/issues/1931 is fixed
# pylint: disable=no-name-in-module,import-error,no-member
from django.db import migrations

from aiida.backends.djsite.db.migrations import upgrade_schema_version

REVISION = '1.0.34'
DOWN_REVISION = '1.0.33'


[docs]class Migration(migrations.Migration): """Drop the columns `nodeversion` and `public` from the `DbNode` model.""" dependencies = [ ('db', '0033_replace_text_field_with_json_field'), ] operations = [ migrations.RemoveField( model_name='dbnode', name='nodeversion', ), migrations.RemoveField( model_name='dbnode', name='public', ), upgrade_schema_version(REVISION, DOWN_REVISION) ]