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
!135
Update: Generated new classes for Resource table (coscine/issues#1556)
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Update: Generated new classes for Resource table (coscine/issues#1556)
Topic/1556-migrationForArchiving
into
Product/1470-migrationForArchiving
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Theresia Rupprecht
requested to merge
Topic/1556-migrationForArchiving
into
Product/1470-migrationForArchiving
4 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
coscine/issues#1556
0
0
Merge request reports
Compare
Product/1470-migrationForArchiving
Product/1470-migrationForArchiving (base)
and
latest version
latest version
e4bd9905
1 commit,
4 years ago
2 files
+
7
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Scaffolding/DataModel/Model.cs
+
6
−
4
View file @ e4bd9905
Edit in single-file editor
Open in Web IDE
Show full file
using
System
;
using
System
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore.Metadata
;
@@ -58,9 +58,6 @@ namespace Coscine.Database.DataModel
protected
override
void
OnConfiguring
(
DbContextOptionsBuilder
optionsBuilder
)
{
if
(!
optionsBuilder
.
IsConfigured
)
{
}
}
protected
override
void
OnModelCreating
(
ModelBuilder
modelBuilder
)
@@ -560,6 +557,11 @@ namespace Coscine.Database.DataModel
entity
.
Property
(
e
=>
e
.
ApplicationProfile
).
HasMaxLength
(
500
);
entity
.
Property
(
e
=>
e
.
Archived
)
.
IsRequired
()
.
HasMaxLength
(
255
)
.
HasDefaultValueSql
(
"(N'0')"
);
entity
.
Property
(
e
=>
e
.
DisplayName
).
HasMaxLength
(
25
);
entity
.
Property
(
e
=>
e
.
Keywords
).
HasMaxLength
(
1000
);
Loading