welearn-database 1.5.3.dev0__py3-none-any.whl → 1.5.3.dev1__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.
- welearn_database/alembic/versions/f10903998081_keycloack_id_for_user_id.py +30 -0
- welearn_database/data/models/user_related.py +1 -0
- {welearn_database-1.5.3.dev0.dist-info → welearn_database-1.5.3.dev1.dist-info}/METADATA +1 -1
- {welearn_database-1.5.3.dev0.dist-info → welearn_database-1.5.3.dev1.dist-info}/RECORD +6 -5
- {welearn_database-1.5.3.dev0.dist-info → welearn_database-1.5.3.dev1.dist-info}/LICENSE +0 -0
- {welearn_database-1.5.3.dev0.dist-info → welearn_database-1.5.3.dev1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""keycloack_id_for_user_id
|
|
2
|
+
|
|
3
|
+
Revision ID: f10903998081
|
|
4
|
+
Revises: 5d46d7920342
|
|
5
|
+
Create Date: 2026-09-23 14:27:26.389768
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Sequence, Union
|
|
10
|
+
|
|
11
|
+
import sqlalchemy as sa
|
|
12
|
+
from alembic import op
|
|
13
|
+
|
|
14
|
+
# revision identifiers, used by Alembic.
|
|
15
|
+
revision: str = "f10903998081"
|
|
16
|
+
down_revision: Union[str, None] = "5d46d7920342"
|
|
17
|
+
branch_labels: Union[str, Sequence[str], None] = None
|
|
18
|
+
depends_on: Union[str, Sequence[str], None] = None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def upgrade() -> None:
|
|
22
|
+
op.add_column(
|
|
23
|
+
"inferred_user",
|
|
24
|
+
sa.Column("keycloak_id", sa.Uuid(), nullable=True, unique=True),
|
|
25
|
+
schema="user_related",
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def downgrade() -> None:
|
|
30
|
+
op.drop_column("inferred_user", "keycloak_id", schema="user_related")
|
|
@@ -215,6 +215,7 @@ class InferredUser(Base):
|
|
|
215
215
|
id: Mapped[UUID] = mapped_column(
|
|
216
216
|
types.Uuid, primary_key=True, nullable=False, server_default="gen_random_uuid()"
|
|
217
217
|
)
|
|
218
|
+
keycloak_id: Mapped[UUID] = mapped_column(types.Uuid, nullable=True)
|
|
218
219
|
origin_referrer: Mapped[str | None]
|
|
219
220
|
university_title: Mapped[str | None]
|
|
220
221
|
role: Mapped[str | None]
|
|
@@ -26,6 +26,7 @@ welearn_database/alembic/versions/b049924f7067_modify_corpus_name_embedding_mode
|
|
|
26
26
|
welearn_database/alembic/versions/b84462ca3800_update_grafana_process_state_view.py,sha256=5xmW9BO3Y3Aq-qyssXHZGKk6pNfX_9oq9Grpwk6-pug,1318
|
|
27
27
|
welearn_database/alembic/versions/ccdbd708c997_create_column_external_id.py,sha256=xQtLsONPsaqHFck_RgV2VAcpRN-RFdeF3relGQ7A7-c,1757
|
|
28
28
|
welearn_database/alembic/versions/e354666f951d_inferred_user.py,sha256=WGmsJKDsLKq3IhmaG23BixFR0X7ldeiAvLkfzqpR3oE,3483
|
|
29
|
+
welearn_database/alembic/versions/f10903998081_keycloack_id_for_user_id.py,sha256=0xCmuyonpNK1tkHZu3OBj7riCN-DS8S4wKAZxZsT9aQ,713
|
|
29
30
|
welearn_database/alembic/versions/f1ce0ad2845b_add_doi_column_to_document.py,sha256=rDTirFy51Qid8SSQ80QQCC0u_Oex6OVMHux4i6ePl90,715
|
|
30
31
|
welearn_database/alembic/versions/f5e91a5c950d_add_analytic_form.py,sha256=q0BBZfVynH0f4GdHIbWTDnJhCDOm1Zy4EjP1pWT5hYc,1890
|
|
31
32
|
welearn_database/alembic/versions/f8602200fa99_update_session_view.py,sha256=92lb6Lr-9HuW3zVHuD5SzyUhHRQrwVup8a3QSTI1s4g,831
|
|
@@ -37,13 +38,13 @@ welearn_database/data/models/agent_related.py,sha256=Z0foQ-dcsORp7Wi_bPMsS2zulU8
|
|
|
37
38
|
welearn_database/data/models/corpus_related.py,sha256=fli3Je6hi49nn6IfMxptujisJRDSM5slWivabMp_ZTg,6850
|
|
38
39
|
welearn_database/data/models/document_related.py,sha256=iM5UCXqAFNF76g6mPoeWHClXzyCiHiBaC3NFN3mZ1vY,17962
|
|
39
40
|
welearn_database/data/models/grafana.py,sha256=Q_8RKoXSyNShqVx7Bl-763ImuCnqzmWdJU04mlg4axU,5614
|
|
40
|
-
welearn_database/data/models/user_related.py,sha256=
|
|
41
|
+
welearn_database/data/models/user_related.py,sha256=PC9CipMej7yqnM1CALNbPyHaThdWPR7NIVX0Nvl8xDE,9909
|
|
41
42
|
welearn_database/database_utils.py,sha256=fFCjFHXLYa80XblQAB5so0NQgd5yr_RmO5rM4r3qm0I,800
|
|
42
43
|
welearn_database/exceptions.py,sha256=6XP4vxRSJ40mwqGZ7PdjWaW1MarZLX3vRsBL9WQe4WI,1173
|
|
43
44
|
welearn_database/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
45
|
welearn_database/modules/text_cleaning.py,sha256=N_OgJNsjOOKp6m05iljvM0f22_U9wEhy7nKpqnfuG0k,2169
|
|
45
46
|
welearn_database/regular_expression.py,sha256=qAUCoxBSfzD1DLlaRfz0R8H6wp7iyQPiBgNhNOT-2Qw,668
|
|
46
|
-
welearn_database-1.5.3.
|
|
47
|
-
welearn_database-1.5.3.
|
|
48
|
-
welearn_database-1.5.3.
|
|
49
|
-
welearn_database-1.5.3.
|
|
47
|
+
welearn_database-1.5.3.dev1.dist-info/LICENSE,sha256=5mwmnUgZqqs0tJ71IgxN2rZ1byG7UYB2Gk64Vh8re70,20850
|
|
48
|
+
welearn_database-1.5.3.dev1.dist-info/METADATA,sha256=YIbL5GldktlFHcUrzxp7p7bTGQ6N-QH-yqdFvMRsMg0,2183
|
|
49
|
+
welearn_database-1.5.3.dev1.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
|
50
|
+
welearn_database-1.5.3.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|