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
!29
New: Created External Api for MD Management (coscine/issues#313)
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
New: Created External Api for MD Management (coscine/issues#313)
Topic/313-externalAPI
into
Product/269-contentMD
Overview
0
Commits
1
Pipelines
1
Changes
3
Merged
L. Ellenbeck
requested to merge
Topic/313-externalAPI
into
Product/269-contentMD
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
3
coscine/issues#313
0
0
Merge request reports
Compare
Product/269-contentMD
Product/269-contentMD (base)
and
latest version
latest version
01401cd1
1 commit,
5 years ago
3 files
+
23
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
src/Migrator/Migrations/Migration201910241600ResourceMetadata.cs
0 → 100644
+
20
−
0
View file @ 01401cd1
Edit in single-file editor
Open in Web IDE
using
FluentMigrator
;
namespace
Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[
Migration
(
201910241600
)]
public
class
Migration201910241600ResourceMetadata
:
FluentMigrator
.
Migration
{
public
override
void
Down
()
{
Delete
.
Column
(
"ApplicationProfile"
).
FromTable
(
"Resources"
);
Delete
.
Column
(
"FixedValues"
).
FromTable
(
"Resources"
);
}
public
override
void
Up
()
{
Alter
.
Table
(
"Resources"
).
AddColumn
(
"ApplicationProfile"
).
AsString
(
500
).
Nullable
();
Alter
.
Table
(
"Resources"
).
AddColumn
(
"FixedValues"
).
AsString
(
5000
).
Nullable
();
}
}
}
Loading