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
!15
Topic/804-niceProjectUrl
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Topic/804-niceProjectUrl
Topic/804-niceProjectUrl
into
Product/510-niceProjectUrl
Overview
0
Commits
2
Pipelines
3
Changes
4
Merged
Marcel Nellesen
requested to merge
Topic/804-niceProjectUrl
into
Product/510-niceProjectUrl
4 years ago
Overview
0
Commits
2
Pipelines
3
Changes
4
Expand
coscine/issues#804
Edited
4 years ago
by
Marcel Nellesen
0
0
Merge request reports
Compare
Product/510-niceProjectUrl
version 1
d225a5c9
4 years ago
Product/510-niceProjectUrl (base)
and
latest version
latest version
9f4f5f11
2 commits,
4 years ago
version 1
d225a5c9
1 commit,
4 years ago
4 files
+
31
−
3
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/Migrator/Migrations/Migration202005281400ProjectUrl.cs
0 → 100644
+
22
−
0
Options
using
FluentMigrator
;
using
System
;
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
202005281400
)]
public
class
Migration202005281400ProjectUrl
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
Column
(
"Slug"
).
FromTable
(
"Projects"
);
}
public
override
void
Up
()
{
Alter
.
Table
(
"Projects"
).
AddColumn
(
"Slug"
).
AsString
(
63
).
Nullable
();
Execute
.
EmbeddedScript
(
"Migration202005281400ProjectUrl_up.sql"
);
Alter
.
Table
(
"Projects"
).
AlterColumn
(
"Slug"
).
AsString
(
63
).
NotNullable
();
}
}
}
Loading