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
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
Migrations
Commits
a896b160
Commit
a896b160
authored
2 years ago
by
Petar Hristov
Browse files
Options
Downloads
Plain Diff
Merge branch 'Issue/1321-pidEnquiryOverhaul' into 'dev'
Update: Overhaul PID handling See merge request
!83
parents
37277aa2
7fc58c5a
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!84
Release: Sprint/2022 17 :robot:
,
!83
Update: Overhaul PID handling
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Migrations/Migrations/Migration202208181027ResourceDeletedColumn.cs
+24
-0
24 additions, 0 deletions
.../Migrations/Migration202208181027ResourceDeletedColumn.cs
with
24 additions
and
0 deletions
src/Migrations/Migrations/Migration202208181027ResourceDeletedColumn.cs
0 → 100644
+
24
−
0
View file @
a896b160
using
FluentMigrator
;
namespace
Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[
Migration
(
202208181027
)]
public
class
Migration202208181027ResourceDeletedColumn
:
Migration
{
public
override
void
Down
()
{
Delete
.
Column
(
"Deleted"
)
.
FromTable
(
"Resources"
);
}
public
override
void
Up
()
{
Alter
.
Table
(
"Resources"
)
.
AddColumn
(
"Deleted"
)
.
AsBoolean
()
.
NotNullable
()
.
WithDefaultValue
(
false
);
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment