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
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
!12
Product/772-s3ResourceUrl
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Product/772-s3ResourceUrl
Product/772-s3ResourceUrl
into
Sprint/2020-07
Overview
0
Commits
4
Pipelines
1
Changes
2
Merged
Marcel Nellesen
requested to merge
Product/772-s3ResourceUrl
into
Sprint/2020-07
5 years ago
Overview
0
Commits
4
Pipelines
1
Changes
2
Expand
coscine/issues#772
0
0
Merge request reports
Compare
Sprint/2020-07
Sprint/2020-07 (base)
and
latest version
latest version
9fa66772
4 commits,
5 years ago
2 files
+
21
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/Migrator/Migrations/Migration202004151354S3ResourceUrl.cs
0 → 100644
+
20
−
0
Options
using
FluentMigrator
;
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
202004151354
)]
public
class
Migration202004151354S3ResourceUrl
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
Column
(
"ResourceUrl"
).
FromTable
(
"S3ResourceType"
);
}
public
override
void
Up
()
{
Alter
.
Table
(
"S3ResourceType"
).
AddColumn
(
"ResourceUrl"
).
AsString
(
200
).
Nullable
();
Update
.
Table
(
"S3ResourceType"
).
Set
(
new
{
ResourceUrl
=
"https://s3.rwth-aachen.de"
}).
AllRows
();
Alter
.
Table
(
"S3ResourceType"
).
AlterColumn
(
"ResourceUrl"
).
AsString
(
200
).
NotNullable
();
}
}
}
Loading