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
!9
Product/150 user project creation
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Product/150 user project creation
Product/150-UserProjectCreation
into
master
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
L. Ellenbeck
requested to merge
Product/150-UserProjectCreation
into
master
5 years ago
Overview
0
Commits
2
Pipelines
1
Changes
2
coscine/issues#159
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8130c3d2
2 commits,
5 years ago
2 files
+
30
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Migrator/Migrations/Migration201907081510EnhanceProjectApi.cs
0 → 100644
+
29
−
0
View file @ 8130c3d2
Edit in single-file editor
Open in Web IDE
using
FluentMigrator
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
201907081510
)]
public
class
Migration201907081510EnhanceProjectApi
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
Column
(
"StartDate"
).
FromTable
(
"Projects"
);
Delete
.
Column
(
"EndDate"
).
FromTable
(
"Projects"
);
Delete
.
Column
(
"Keywords"
).
FromTable
(
"Projects"
);
}
public
override
void
Up
()
{
Alter
.
Table
(
"Projects"
)
.
AddColumn
(
"StartDate"
).
AsDateTime
().
WithDefault
(
SystemMethods
.
CurrentDateTime
)
.
AddColumn
(
"EndDate"
).
AsDateTime
()
.
AddColumn
(
"Keywords"
).
AsString
(
1000
);
}
}
}
Loading