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
!17
Fix: Add Givenname and Surname to Users Table (coscine/issues#280)
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Fix: Add Givenname and Surname to Users Table (coscine/issues#280)
Hotfix/280-surnameAndGivenname
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Fix: Add Givenname and Surname to Users Table (coscine/issues#280)
L. Ellenbeck
requested to merge
Hotfix/280-surnameAndGivenname
into
master
Sep 16, 2019
Overview
0
Commits
1
Pipelines
1
Changes
2
coscine/issues#280
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
22d9f765
1 commit,
Sep 16, 2019
2 files
+
21
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Migrator/Migrations/Migration201909160919UserEnhancement.cs
0 → 100644
+
20
−
0
View file @ 22d9f765
Edit in single-file editor
Open in Web IDE
using
FluentMigrator
;
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
201909160919
)]
public
class
Migration201909160919UserEnhancement
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
Column
(
"Givenname"
).
FromTable
(
"Users"
);
Delete
.
Column
(
"Surname"
).
FromTable
(
"Users"
);
}
public
override
void
Up
()
{
Alter
.
Table
(
"Users"
).
AddColumn
(
"Givenname"
).
AsString
(
200
).
Nullable
();
Alter
.
Table
(
"Users"
).
AddColumn
(
"Surname"
).
AsString
(
200
).
Nullable
();
}
}
}
Loading