Skip to content
Snippets Groups Projects
Commit 45e619a4 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'Product/1470-migrationForArchiving' into 'Sprint/2021-10'

Product/1470 migration for archiving

See merge request !137
parents 40d44a79 be8a3446
No related branches found
No related tags found
2 merge requests!137Product/1470 migration for archiving,!136Sprint/2021 10
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);
......
......
......@@ -28,6 +28,7 @@ namespace Coscine.Database.DataModel
public string ApplicationProfile { get; set; }
public string FixedValues { get; set; }
public Guid? Creator { get; set; }
public string Archived { get; set; }
public virtual License License { get; set; }
public virtual ResourceType Type { get; set; }
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment