|
@@ -0,0 +1,648 @@
|
|
|
+using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
+
|
|
|
+#nullable disable
|
|
|
+
|
|
|
+namespace MTWorkHR.Infrastructure.Migrations
|
|
|
+{
|
|
|
+ /// <inheritdoc />
|
|
|
+ public partial class altrLogs : Migration
|
|
|
+ {
|
|
|
+ /// <inheritdoc />
|
|
|
+ protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
+ {
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: true,
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)");
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <inheritdoc />
|
|
|
+ protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
+ {
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "UserLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "SettingLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "RoleLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "FileLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "userAgent",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "UserIP",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "ServerIP",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "QueryString",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Input",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "InnerException",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+
|
|
|
+ migrationBuilder.AlterColumn<string>(
|
|
|
+ name: "Channel",
|
|
|
+ table: "AuthLogs",
|
|
|
+ type: "nvarchar(max)",
|
|
|
+ nullable: false,
|
|
|
+ defaultValue: "",
|
|
|
+ oldClrType: typeof(string),
|
|
|
+ oldType: "nvarchar(max)",
|
|
|
+ oldNullable: true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|