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
!39
Product/1154 resource type definition
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Product/1154 resource type definition
Product/1154-resourceTypeDefinition
into
Sprint/2020-22
Overview
0
Commits
3
Pipelines
2
Changes
7
Merged
Product/1154 resource type definition
Marcel Nellesen
requested to merge
Product/1154-resourceTypeDefinition
into
Sprint/2020-22
Dec 3, 2020
Overview
0
Commits
3
Pipelines
2
Changes
7
coscine/issues#1154
0
0
Merge request reports
Compare
Sprint/2020-22
version 1
63ae3ce5
Dec 3, 2020
Sprint/2020-22 (base)
and
latest version
latest version
1ff2350c
3 commits,
Dec 3, 2020
version 1
63ae3ce5
2 commits,
Dec 3, 2020
7 files
+
32
−
273
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
src/Migrations/Migrations/Migration202011161100ResourceTypeDefinition.cs
0 → 100644
+
22
−
0
View file @ 1ff2350c
Edit in single-file editor
Open in Web IDE
using
FluentMigrator
;
namespace
Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[
Migration
(
202011161100
)]
public
class
Migration202011161100ResourceTypeDefinition
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
FromTable
(
"ResourceTypes"
).
Row
(
new
{
DisplayName
=
"linked"
});
Delete
.
Table
(
"LinkedResourceType"
);
}
public
override
void
Up
()
{
Insert
.
IntoTable
(
"ResourceTypes"
).
Row
(
new
{
DisplayName
=
"linked"
});
Create
.
Table
(
"LinkedResourceType"
)
.
WithColumn
(
"Id"
).
AsGuid
().
PrimaryKey
().
WithDefault
(
SystemMethods
.
NewGuid
);
}
}
}
Loading