using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace Winsoft.GOV.XF.WebApi.WXCore.Migrations { public partial class AterCreatDate2 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CreateDate", table: "WXUser", type: "datetime(6)", nullable: false, oldClrType: typeof(DateTime)) .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); migrationBuilder.AlterColumn( name: "CreateDate", table: "Bundle", type: "datetime(6)", nullable: false, oldClrType: typeof(DateTime)) .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); migrationBuilder.AlterColumn( name: "CreateDate", table: "Asset", type: "datetime(6)", nullable: false, oldClrType: typeof(DateTime)) .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CreateDate", table: "WXUser", nullable: false, oldClrType: typeof(DateTime), oldType: "datetime(6)") .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); migrationBuilder.AlterColumn( name: "CreateDate", table: "Bundle", nullable: false, oldClrType: typeof(DateTime), oldType: "datetime(6)") .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); migrationBuilder.AlterColumn( name: "CreateDate", table: "Asset", nullable: false, oldClrType: typeof(DateTime), oldType: "datetime(6)") .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); } } }