Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Database
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
libraries
Database
Merge requests
!34
New: Add Attributes for Shibboleth Integration
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
New: Add Attributes for Shibboleth Integration
Product/480-ssoLogin
into
Sprint/201922-2
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
New: Add Attributes for Shibboleth Integration
Marcel Nellesen
requested to merge
Product/480-ssoLogin
into
Sprint/201922-2
Dec 16, 2019
Overview
0
Commits
2
Pipelines
1
Changes
2
(coscine/issues#525)
0
0
Merge request reports
Compare
Sprint/201922-2
Sprint/201922-2 (base)
and
latest version
latest version
3d4f2f0b
2 commits,
Dec 16, 2019
2 files
+
36
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Migrator/Migrations/Migration201912091553ShibbolethAddition.cs
0 → 100644
+
33
−
0
View file @ 3d4f2f0b
Edit in single-file editor
Open in Web IDE
using
FluentMigrator
;
using
System
;
using
System.IO
;
using
System.Linq
;
using
System.Reflection
;
using
System.Xml
;
using
System.Xml.Linq
;
#region DupFinder Exclusion
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
201912091553
)]
public
class
Migration201912091553ShibbolethAddition
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
FromTable
(
"ExternalAuthenticators"
).
Row
(
new
{
DisplayName
=
"Shibboleth"
});
Delete
.
Column
(
"Entitlement"
).
FromTable
(
"Users"
);
Delete
.
Column
(
"Organization"
).
FromTable
(
"Users"
);
}
public
override
void
Up
()
{
Insert
.
IntoTable
(
"ExternalAuthenticators"
).
Row
(
new
{
DisplayName
=
"Shibboleth"
});
Alter
.
Table
(
"Users"
).
AddColumn
(
"Entitlement"
).
AsString
(
200
).
Nullable
();
Alter
.
Table
(
"Users"
).
AddColumn
(
"Organization"
).
AsString
(
200
).
Nullable
();
}
}
}
#
endregion
\ No newline at end of file
Loading