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
!42
Sprint/202000
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Sprint/202000
Product/286-implementResourceCreator
into
Sprint/202000
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
Marcel Nellesen
requested to merge
Product/286-implementResourceCreator
into
Sprint/202000
5 years ago
Overview
0
Commits
2
Pipelines
1
Changes
2
0
0
Merge request reports
Compare
Sprint/202000
Sprint/202000 (base)
and
latest version
latest version
fd44d8c2
2 commits,
5 years ago
2 files
+
28
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Migrator/Migrations/Migration202001131100ResourceCreator.cs
0 → 100644
+
27
−
0
View file @ fd44d8c2
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
;
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
202001131100
)]
public
class
Migration202001131100ResourceCreator
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
Column
(
"Creator"
).
FromTable
(
"Resources"
);
}
public
override
void
Up
()
{
Alter
.
Table
(
"Resources"
)
.
AddColumn
(
"Creator"
).
AsGuid
().
Nullable
();
}
}
}
\ No newline at end of file
Loading