Fixed column default value and model type for cicm_db.updated

This commit is contained in:
Marco Evangelisti
2019-12-27 02:15:49 +00:00
parent 8785336583
commit bacdbf0de4
5 changed files with 10 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
/******************************************************************************
/******************************************************************************
// Canary Islands Computer Museum Website
// ----------------------------------------------------------------------------
//
@@ -36,6 +36,6 @@ namespace Cicm.Database.Models
{
public int Id { get; set; }
public int Version { get; set; }
public DateTime? Updated { get; set; }
public DateTimeOffset? Updated { get; set; }
}
}

View File

@@ -229,7 +229,7 @@ namespace Cicm.Database.Models
entity.Property(e => e.Id).HasColumnName("id").HasColumnType("int(11)");
entity.Property(e => e.Updated).HasColumnName("updated").HasColumnType("datetime")
.HasDefaultValueSql("'CURRENT_TIMESTAMP'");
.HasDefaultValueSql("CURRENT_TIMESTAMP");
entity.Property(e => e.Version).HasColumnName("version").HasColumnType("int(11)");
});