mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fixed column default value and model type for cicm_db.updated
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/******************************************************************************
|
||||
/******************************************************************************
|
||||
// Canary Islands Computer Museum Website
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -114,8 +114,8 @@ namespace Cicm.Database.Migrations
|
||||
.Annotation("MySql:ValueGenerationStrategy",
|
||||
MySqlValueGenerationStrategy.IdentityColumn),
|
||||
version = table.Column<int>("int(11)", nullable: false),
|
||||
updated = table.Column<DateTime>("datetime", nullable: true,
|
||||
defaultValueSql: "'CURRENT_TIMESTAMP'")
|
||||
updated = table.Column<DateTimeOffset?>("timestamp", nullable: true,
|
||||
defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
}, constraints: table => { table.PrimaryKey("PK_cicm_db", x => x.id); });
|
||||
|
||||
migrationBuilder.CreateTable("forbidden",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// <auto-generated />
|
||||
// <auto-generated />
|
||||
|
||||
using System;
|
||||
using Cicm.Database.Models;
|
||||
@@ -170,8 +170,8 @@ namespace Cicm.Database.Migrations
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnName("id").HasColumnType("int(11)");
|
||||
|
||||
b.Property<DateTime?>("Updated").ValueGeneratedOnAdd().HasColumnName("updated")
|
||||
.HasColumnType("datetime").HasDefaultValueSql("'CURRENT_TIMESTAMP'");
|
||||
b.Property<DateTimeOffset?>("Updated").ValueGeneratedOnAdd().HasColumnName("updated")
|
||||
.HasColumnType("timestamp").HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<int>("Version").HasColumnName("version").HasColumnType("int(11)");
|
||||
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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)");
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
<Version>3.0.99.845</Version>
|
||||
<Version>3.0.99.846</Version>
|
||||
<Company>Canary Islands Computer Museum</Company>
|
||||
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
||||
<Product>Canary Islands Computer Museum Website</Product>
|
||||
|
||||
Reference in New Issue
Block a user