Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Migrations
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
Migrations
Merge requests
!94
Draft: Update: adding guest role to Roles table
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Draft: Update: adding guest role to Roles table
Issue/5678-addingGuestRoleToRoles
into
dev
Overview
2
Commits
1
Pipelines
5
Changes
1
Closed
Draft: Update: adding guest role to Roles table
Hanna Führ
requested to merge
Issue/5678-addingGuestRoleToRoles
into
dev
Nov 3, 2022
Overview
2
Commits
1
Pipelines
5
Changes
1
coscine/issues#2281
DO NOT MERGE
Edited
Nov 4, 2022
by
Petar Hristov
0
0
Merge request reports
Compare
dev
version 3
609f20e2
Nov 7, 2022
version 2
59025dec
Nov 7, 2022
version 1
8f1a2859
Nov 3, 2022
dev (base)
and
latest version
latest version
8f1a2859
1 commit,
Nov 7, 2022
version 3
609f20e2
3 commits,
Nov 7, 2022
version 2
59025dec
2 commits,
Nov 7, 2022
version 1
8f1a2859
1 commit,
Nov 3, 2022
1 file
+
19
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Migrations/Migrations/Migration202211031301GuestRole.cs
0 → 100644
+
19
−
0
View file @ 8f1a2859
Edit in single-file editor
Open in Web IDE
using
FluentMigrator
;
namespace
Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[
Migration
(
202211031301
)]
public
class
Migration202211031301GuestRole
:
Migration
{
public
override
void
Down
()
{
Delete
.
FromTable
(
"Roles"
).
Row
(
new
{
DisplayName
=
"Guest"
,
Description
=
"Guest of the project."
});
}
public
override
void
Up
()
{
Insert
.
IntoTable
(
"Roles"
).
Row
(
new
{
DisplayName
=
"Guest"
,
Description
=
"Guest of the project."
});
}
}
}
\ No newline at end of file
Loading