new migration

This commit is contained in:
Marcus Ferl 2023-07-09 11:51:47 +02:00
parent 05de4c3ef1
commit 5a38f22fe5
4 changed files with 12 additions and 5 deletions

View File

@ -11,8 +11,8 @@ using Weiferl.Databas.EF;
namespace Weiferl.Databas.EF.Migrations
{
[DbContext(typeof(WeiferlDb))]
[Migration("20230709082413_added_users_countries")]
partial class added_users_countries
[Migration("20230709095004_init")]
partial class init
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -69,6 +69,9 @@ namespace Weiferl.Databas.EF.Migrations
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime?>("RegisterDate")
.HasColumnType("datetime(6)");
b.Property<Guid>("UserId")
.HasColumnType("char(36)");

View File

@ -7,7 +7,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace Weiferl.Databas.EF.Migrations
{
/// <inheritdoc />
public partial class added_users_countries : Migration
public partial class init : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
@ -48,7 +48,8 @@ namespace Weiferl.Databas.EF.Migrations
Birthday = table.Column<DateTime>(type: "datetime(6)", nullable: true),
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false),
CountrySlug = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4")
.Annotation("MySql:CharSet", "utf8mb4"),
RegisterDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{

View File

@ -66,6 +66,9 @@ namespace Weiferl.Databas.EF.Migrations
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime?>("RegisterDate")
.HasColumnType("datetime(6)");
b.Property<Guid>("UserId")
.HasColumnType("char(36)");

View File

@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Weiferl Database Ef</Title>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<VersionSuffix></VersionSuffix>
</PropertyGroup>