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
Commits
f8c70367
Commit
f8c70367
authored
Aug 29, 2019
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Update: Add ORCiD to ExternalAuthenticators
parent
d1e6e130
No related branches found
No related tags found
1 merge request
!16
Sprint/20190829
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Migrator/Migrations/Migration201908290941ORCiD.cs
+22
-0
22 additions, 0 deletions
src/Migrator/Migrations/Migration201908290941ORCiD.cs
src/Migrator/Migrator.csproj
+1
-0
1 addition, 0 deletions
src/Migrator/Migrator.csproj
with
23 additions
and
0 deletions
src/Migrator/Migrations/Migration201908290941ORCiD.cs
0 → 100644
+
22
−
0
View file @
f8c70367
using
FluentMigrator
;
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
201908290941
)]
public
class
Migration201908290941ORCiD
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Rename
.
Column
(
"ExternalAuthenticatorId"
).
OnTable
(
"ExternalIds"
).
To
(
"ResourceTypeId"
);
Delete
.
FromTable
(
"ExternalAuthenticators"
).
Row
(
new
{
DisplayName
=
"ORCiD"
});
}
public
override
void
Up
()
{
Rename
.
Column
(
"ResourceTypeId"
).
OnTable
(
"ExternalIds"
).
To
(
"ExternalAuthenticatorId"
);
Insert
.
IntoTable
(
"ExternalAuthenticators"
).
Row
(
new
{
DisplayName
=
"ORCiD"
});
}
}
}
This diff is collapsed.
Click to expand it.
src/Migrator/Migrator.csproj
+
1
−
0
View file @
f8c70367
...
...
@@ -145,6 +145,7 @@
<ItemGroup>
<Compile
Include=
"Migrations\Migration201907011352ProjectApi.cs"
/>
<Compile
Include=
"Migrations\Migration201907081510EnhanceProjectApi.cs"
/>
<Compile
Include=
"Migrations\Migration201908290941ORCiD.cs"
/>
<Compile
Include=
"Migrations\Migration201908121401GitlabResource.cs"
/>
<Compile
Include=
"Migrations\Migration201908071616RdsResource.cs"
/>
<Compile
Include=
"Migrations\Migration201907100900UserProfilesApi.cs"
/>
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
893e3e0c
·
Aug 30, 2019
mentioned in commit
893e3e0c
mentioned in commit 893e3e0cb27c51c3445449360d7b73a1ded70ecf
Toggle commit list
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