| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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<DateTime>(
- name: "CreateDate",
- table: "WXUser",
- type: "datetime(6)",
- nullable: false,
- oldClrType: typeof(DateTime))
- .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
- migrationBuilder.AlterColumn<DateTime>(
- name: "CreateDate",
- table: "Bundle",
- type: "datetime(6)",
- nullable: false,
- oldClrType: typeof(DateTime))
- .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
- migrationBuilder.AlterColumn<DateTime>(
- 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<DateTime>(
- name: "CreateDate",
- table: "WXUser",
- nullable: false,
- oldClrType: typeof(DateTime),
- oldType: "datetime(6)")
- .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
- migrationBuilder.AlterColumn<DateTime>(
- name: "CreateDate",
- table: "Bundle",
- nullable: false,
- oldClrType: typeof(DateTime),
- oldType: "datetime(6)")
- .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
- migrationBuilder.AlterColumn<DateTime>(
- name: "CreateDate",
- table: "Asset",
- nullable: false,
- oldClrType: typeof(DateTime),
- oldType: "datetime(6)")
- .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
- }
- }
- }
|