Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
Portal
Commits
7728b97b
Commit
7728b97b
authored
9 months ago
by
Jakob Moser
Browse files
Options
Downloads
Plain Diff
Merge branch 'add-ldap-directory-config-to-database' into 'master'
Add LDAP configuration to database See merge request
!9
parents
da516eea
a5639249
No related branches found
No related tags found
1 merge request
!9
Add LDAP configuration to database
Pipeline
#6475
passed
9 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alembic/versions/ec81173dbe48_add_ldap_directory.py
+33
-0
33 additions, 0 deletions
alembic/versions/ec81173dbe48_add_ldap_directory.py
with
33 additions
and
0 deletions
alembic/versions/ec81173dbe48_add_ldap_directory.py
0 → 100644
+
33
−
0
View file @
7728b97b
"""
Add ldap directory
Revision ID: ec81173dbe48
Revises: 6c174457829c
Create Date: 2024-06-06 23:50:54.368404
"""
from
typing
import
Sequence
,
Union
from
alembic
import
op
import
sqlalchemy
as
sa
from
portal.model
import
Uuid
# revision identifiers, used by Alembic.
revision
:
str
=
"
ec81173dbe48
"
down_revision
:
Union
[
str
,
None
]
=
"
6c174457829c
"
branch_labels
:
Union
[
str
,
Sequence
[
str
],
None
]
=
None
depends_on
:
Union
[
str
,
Sequence
[
str
],
None
]
=
None
def
upgrade
()
->
None
:
op
.
create_table
(
"
ldap_directory
"
,
sa
.
Column
(
"
url
"
,
sa
.
String
(),
nullable
=
False
),
sa
.
Column
(
"
base_dn
"
,
sa
.
String
(),
nullable
=
False
),
sa
.
Column
(
"
uuid
"
,
Uuid
(),
nullable
=
False
),
sa
.
PrimaryKeyConstraint
(
"
uuid
"
),
)
def
downgrade
()
->
None
:
op
.
drop_table
(
"
ldap_directory
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment