Skip to content

names: remove internal_id #1735

names: remove internal_id

names: remove internal_id #1735

Triggered via pull request December 19, 2024 09:58
Status Failure
Total duration 6m 49s
Artifacts

tests.yml

on: pull_request
Matrix: JS / Tests
Matrix: Python / Tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Python / Tests (3.9, postgresql14, opensearch2): invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py#L1
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py 2024-12-19 09:58:33.580554+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py 2024-12-19 10:03:50.439758+00:00 @@ -10,20 +10,28 @@ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. -revision = '8a91f4cfedd2' -down_revision = 'af2457652217' +revision = "8a91f4cfedd2" +down_revision = "af2457652217" branch_labels = () depends_on = None def upgrade(): """Upgrade database.""" - op.drop_index('ix_name_metadata_internal_id', table_name='name_metadata') - op.drop_column('name_metadata', 'internal_id') + op.drop_index("ix_name_metadata_internal_id", table_name="name_metadata") + op.drop_column("name_metadata", "internal_id") + def downgrade(): """Downgrade database.""" - op.add_column('name_metadata', sa.Column('internal_id', sa.VARCHAR(length=255), autoincrement=False, nullable=True)) - op.create_index('ix_name_metadata_internal_id', 'name_metadata', ['internal_id'], unique=False) + op.add_column( + "name_metadata", + sa.Column( + "internal_id", sa.VARCHAR(length=255), autoincrement=False, nullable=True + ), + ) + op.create_index( + "ix_name_metadata_internal_id", "name_metadata", ["internal_id"], unique=False + )
Python / Tests (3.9, postgresql14, opensearch2): invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py#L1
isort-check """Removes internal_id from name_metadata.""" +import sqlalchemy as sa from alembic import op -import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic.
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py#L1
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py 2024-12-19 09:58:33.121687+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py 2024-12-19 10:04:03.061168+00:00 @@ -10,20 +10,28 @@ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. -revision = '8a91f4cfedd2' -down_revision = 'af2457652217' +revision = "8a91f4cfedd2" +down_revision = "af2457652217" branch_labels = () depends_on = None def upgrade(): """Upgrade database.""" - op.drop_index('ix_name_metadata_internal_id', table_name='name_metadata') - op.drop_column('name_metadata', 'internal_id') + op.drop_index("ix_name_metadata_internal_id", table_name="name_metadata") + op.drop_column("name_metadata", "internal_id") + def downgrade(): """Downgrade database.""" - op.add_column('name_metadata', sa.Column('internal_id', sa.VARCHAR(length=255), autoincrement=False, nullable=True)) - op.create_index('ix_name_metadata_internal_id', 'name_metadata', ['internal_id'], unique=False) + op.add_column( + "name_metadata", + sa.Column( + "internal_id", sa.VARCHAR(length=255), autoincrement=False, nullable=True + ), + ) + op.create_index( + "ix_name_metadata_internal_id", "name_metadata", ["internal_id"], unique=False + )
Python / Tests (3.12, postgresql14, opensearch2): invenio_vocabularies/alembic/8a91f4cfedd2_removes_internal_id_from_name_metadata.py#L1
isort-check """Removes internal_id from name_metadata.""" +import sqlalchemy as sa from alembic import op -import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic.
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.