invenio-vocabularies 6.10.0__py2.py3-none-any.whl → 6.10.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of invenio-vocabularies might be problematic. Click here for more details.
- invenio_vocabularies/__init__.py +1 -1
- invenio_vocabularies/alembic/af2457652217_drop_unique_constraint_from_internal_id.py +37 -0
- invenio_vocabularies/contrib/names/names.py +1 -1
- {invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/METADATA +7 -3
- {invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/RECORD +10 -9
- {invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/AUTHORS.rst +0 -0
- {invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/LICENSE +0 -0
- {invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/WHEEL +0 -0
- {invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/entry_points.txt +0 -0
- {invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/top_level.txt +0 -0
invenio_vocabularies/__init__.py
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is part of Invenio.
|
|
3
|
+
# Copyright (C) 2016-2018 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio is free software; you can redistribute it and/or modify it
|
|
6
|
+
# under the terms of the MIT License; see LICENSE file for more details.
|
|
7
|
+
|
|
8
|
+
"""Drop unique constraint from internal id."""
|
|
9
|
+
|
|
10
|
+
import sqlalchemy as sa
|
|
11
|
+
from alembic import op
|
|
12
|
+
from sqlalchemy.dialects import postgresql
|
|
13
|
+
|
|
14
|
+
# revision identifiers, used by Alembic.
|
|
15
|
+
revision = "af2457652217"
|
|
16
|
+
down_revision = "3ba812d80559"
|
|
17
|
+
branch_labels = ()
|
|
18
|
+
depends_on = None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def upgrade():
|
|
22
|
+
"""Upgrade database."""
|
|
23
|
+
op.drop_constraint("uq_name_metadata_internal_id", "name_metadata", type_="unique")
|
|
24
|
+
op.create_index(
|
|
25
|
+
op.f("ix_name_metadata_internal_id"),
|
|
26
|
+
"name_metadata",
|
|
27
|
+
["internal_id"],
|
|
28
|
+
unique=False,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def downgrade():
|
|
33
|
+
"""Downgrade database."""
|
|
34
|
+
op.drop_index(op.f("ix_name_metadata_internal_id"), table_name="name_metadata")
|
|
35
|
+
op.create_unique_constraint(
|
|
36
|
+
"uq_name_metadata_internal_id", "name_metadata", ["internal_id"]
|
|
37
|
+
)
|
|
@@ -47,7 +47,7 @@ record_type = RecordTypeFactory(
|
|
|
47
47
|
# cannot set to nullable=False because it would fail at
|
|
48
48
|
# service level when create({}), see records-resources.
|
|
49
49
|
"pid": db.Column(db.String(255), unique=True),
|
|
50
|
-
"internal_id": db.Column(db.String(255),
|
|
50
|
+
"internal_id": db.Column(db.String(255), nullable=True, index=True),
|
|
51
51
|
},
|
|
52
52
|
schema_version="1.0.0",
|
|
53
53
|
schema_path="local://names/name-v1.0.0.json",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: invenio-vocabularies
|
|
3
|
-
Version: 6.10.
|
|
3
|
+
Version: 6.10.1
|
|
4
4
|
Summary: Invenio module for managing vocabularies.
|
|
5
5
|
Home-page: https://github.com/inveniosoftware/invenio-vocabularies
|
|
6
6
|
Author: CERN
|
|
@@ -88,9 +88,13 @@ https://invenio-vocabularies.readthedocs.io/
|
|
|
88
88
|
Changes
|
|
89
89
|
=======
|
|
90
90
|
|
|
91
|
-
Version v6.10.
|
|
91
|
+
Version v6.10.1 (released 2024-12-12)
|
|
92
92
|
|
|
93
|
-
names:
|
|
93
|
+
- names: drop unique id on the internal id
|
|
94
|
+
|
|
95
|
+
Version v6.10.0 (released 2024-12-12)
|
|
96
|
+
|
|
97
|
+
- names: add internal id column to the name_metadata db
|
|
94
98
|
|
|
95
99
|
Version v6.9.0 (released 2024-12-09)
|
|
96
100
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
invenio_vocabularies/__init__.py,sha256=
|
|
1
|
+
invenio_vocabularies/__init__.py,sha256=AuxBwriF5RZLYPa0nMk9hQ6Ce1qQsJl1URBZCd-64LE,378
|
|
2
2
|
invenio_vocabularies/cli.py,sha256=CpXTTIn2GTpUqNfLEMlRAp3JWst8ZjHVxoGYdhuuv_4,5959
|
|
3
3
|
invenio_vocabularies/config.py,sha256=h9Iied753mmZwZZHe5COMqUYvV-zSQtx763EIkUVb1Q,6973
|
|
4
4
|
invenio_vocabularies/ext.py,sha256=GujJ4UARd4Fxf4z7zznRk9JAgHamZuYCOdrKU5czg00,5987
|
|
@@ -20,6 +20,7 @@ invenio_vocabularies/alembic/6312f33645c1_create_affiliations_table.py,sha256=0r
|
|
|
20
20
|
invenio_vocabularies/alembic/676dd587542d_create_funders_vocabulary_table.py,sha256=4y0jihIQ1s93k7EoqC4vZFrR-tXvuxa678u9hKcu0z0,1791
|
|
21
21
|
invenio_vocabularies/alembic/8ff82dfb0be8_create_vocabularies_branch.py,sha256=RnyKQ38Pkubf_DU2rH9pRdufoAvABdnaP9b9S4-y4Vw,586
|
|
22
22
|
invenio_vocabularies/alembic/__init__.py,sha256=zTkqaw55uK5Bj6VgisfzONfDTxpP6Ty_wMroptywf8U,244
|
|
23
|
+
invenio_vocabularies/alembic/af2457652217_drop_unique_constraint_from_internal_id.py,sha256=tm-idMf72GqY2Bq8LUWEdeZSnPmSIVVh5_NeTYkDfkI,1008
|
|
23
24
|
invenio_vocabularies/alembic/e1146238edd3_create_awards_table.py,sha256=XDAON1kbjAZr3H9neB7YufFVr4lRXmr6mMARRLlURfs,1705
|
|
24
25
|
invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/.eslintrc.yml,sha256=aERX8bU_YWne3S8Ai0FlI705MwJ1AXNb-V9W6FsAc6I,338
|
|
25
26
|
invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/.prettierrc,sha256=67zvnPdNPnqAfVYrzQJZAVa2T-lyfzJnwrDu5lo10jQ,59
|
|
@@ -117,7 +118,7 @@ invenio_vocabularies/contrib/names/components.py,sha256=PyYD1lOhmsuNoyDwM_huxkeo
|
|
|
117
118
|
invenio_vocabularies/contrib/names/config.py,sha256=62jh4MP-CygnBpnRBVaCoGySHDEwhBSG1MnlUBumthw,2046
|
|
118
119
|
invenio_vocabularies/contrib/names/datastreams.py,sha256=mmhtdrda6b4c83dRjxVF5JTqtkt92GSEMHTU6TzQtHw,14570
|
|
119
120
|
invenio_vocabularies/contrib/names/models.py,sha256=SYdtDDG-y5Wq_d06YhiVO5n8gfxPW_mx-tECsIcv5H8,308
|
|
120
|
-
invenio_vocabularies/contrib/names/names.py,sha256=
|
|
121
|
+
invenio_vocabularies/contrib/names/names.py,sha256=jej3gkBgOJpKwp5RmWk1AP678WkMb0VqCpzbTHLTyEc,2675
|
|
121
122
|
invenio_vocabularies/contrib/names/permissions.py,sha256=5xrpYsA3oQUJ5lJpF7wjRAFiW-pM6_yP1k9zllbRwnQ,844
|
|
122
123
|
invenio_vocabularies/contrib/names/resources.py,sha256=Z8XqLKfFKE69zdTTvcTDmpEZ6wqiqjIH5tp0LzXTSwQ,1588
|
|
123
124
|
invenio_vocabularies/contrib/names/s3client.py,sha256=c7B9_NbnXCfE4pE_yMTsT6uQ2hgbcRU-KY6nbWFuFzU,1063
|
|
@@ -304,10 +305,10 @@ invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.mo,sha256=g1I5aNO8r
|
|
|
304
305
|
invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.po,sha256=vg8qC8ofpAdJ3mQz7mWM1ylKDpiNWXFs7rlMdSPkgKk,4629
|
|
305
306
|
invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.mo,sha256=cqSm8NtMAwrP9O6qbmtkDtRT1e9D93qpsJN5X9_PPVw,600
|
|
306
307
|
invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.po,sha256=9ACePz_EpB-LfcIJajZ2kp8Q04tcdrQLOtug162ZUss,4115
|
|
307
|
-
invenio_vocabularies-6.10.
|
|
308
|
-
invenio_vocabularies-6.10.
|
|
309
|
-
invenio_vocabularies-6.10.
|
|
310
|
-
invenio_vocabularies-6.10.
|
|
311
|
-
invenio_vocabularies-6.10.
|
|
312
|
-
invenio_vocabularies-6.10.
|
|
313
|
-
invenio_vocabularies-6.10.
|
|
308
|
+
invenio_vocabularies-6.10.1.dist-info/AUTHORS.rst,sha256=8d0p_WWE1r9DavvzMDi2D4YIGBHiMYcN3LYxqQOj8sY,291
|
|
309
|
+
invenio_vocabularies-6.10.1.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
|
|
310
|
+
invenio_vocabularies-6.10.1.dist-info/METADATA,sha256=emO6pmwnGPoiYE0Gy3Te3obKC18h85uaQ2-r4yvSfMA,12483
|
|
311
|
+
invenio_vocabularies-6.10.1.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
|
312
|
+
invenio_vocabularies-6.10.1.dist-info/entry_points.txt,sha256=ud9nfdMlhO_mu3okwmy5vQD48r3-rCU_pSR-lUtLeYE,3180
|
|
313
|
+
invenio_vocabularies-6.10.1.dist-info/top_level.txt,sha256=x1gRNbaODF_bCD0SBLM3nVOFPGi06cmGX5X94WKrFKk,21
|
|
314
|
+
invenio_vocabularies-6.10.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{invenio_vocabularies-6.10.0.dist-info → invenio_vocabularies-6.10.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|