786 lines
26 KiB
C#
786 lines
26 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Watcher.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ServerPrimaryKey : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PreferredUsername",
|
|
table: "Users",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PocketId",
|
|
table: "Users",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "LastLogin",
|
|
table: "Users",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime(6)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Email",
|
|
table: "Users",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Users",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Tags",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Tags",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "TagId",
|
|
table: "Servers",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "RamSize",
|
|
table: "Servers",
|
|
type: "REAL",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "double");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "LastSeen",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime(6)");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsOnline",
|
|
table: "Servers",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "tinyint(1)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IPAddress",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "GpuType",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Description",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreatedAt",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime(6)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CpuType",
|
|
table: "Servers",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "CpuCores",
|
|
table: "Servers",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Servers",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Value",
|
|
table: "Metrics",
|
|
type: "REAL",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "double");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "Metrics",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Timestamp",
|
|
table: "Metrics",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime(6)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ServerId",
|
|
table: "Metrics",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ContainerId",
|
|
table: "Metrics",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Metrics",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Timestamp",
|
|
table: "LogEvents",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime(6)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ServerId",
|
|
table: "LogEvents",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Message",
|
|
table: "LogEvents",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Level",
|
|
table: "LogEvents",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ContainerId",
|
|
table: "LogEvents",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "LogEvents",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Tag",
|
|
table: "Images",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Images",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Images",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "Containers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "TagId",
|
|
table: "Containers",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Status",
|
|
table: "Containers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Containers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsRunning",
|
|
table: "Containers",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "tinyint(1)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ImageId",
|
|
table: "Containers",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Hostname",
|
|
table: "Containers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreatedAt",
|
|
table: "Containers",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime(6)");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Containers",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PreferredUsername",
|
|
table: "Users",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PocketId",
|
|
table: "Users",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "LastLogin",
|
|
table: "Users",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Email",
|
|
table: "Users",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Users",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Tags",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Tags",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "Servers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "TagId",
|
|
table: "Servers",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "RamSize",
|
|
table: "Servers",
|
|
type: "double",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "REAL");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Servers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "LastSeen",
|
|
table: "Servers",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsOnline",
|
|
table: "Servers",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IPAddress",
|
|
table: "Servers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "GpuType",
|
|
table: "Servers",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Description",
|
|
table: "Servers",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreatedAt",
|
|
table: "Servers",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CpuType",
|
|
table: "Servers",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "CpuCores",
|
|
table: "Servers",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Servers",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Value",
|
|
table: "Metrics",
|
|
type: "double",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "REAL");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "Metrics",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Timestamp",
|
|
table: "Metrics",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ServerId",
|
|
table: "Metrics",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ContainerId",
|
|
table: "Metrics",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Metrics",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Timestamp",
|
|
table: "LogEvents",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ServerId",
|
|
table: "LogEvents",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Message",
|
|
table: "LogEvents",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Level",
|
|
table: "LogEvents",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ContainerId",
|
|
table: "LogEvents",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "LogEvents",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Tag",
|
|
table: "Images",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Images",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Images",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "Containers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "TagId",
|
|
table: "Containers",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Status",
|
|
table: "Containers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Containers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsRunning",
|
|
table: "Containers",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ImageId",
|
|
table: "Containers",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Hostname",
|
|
table: "Containers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "CreatedAt",
|
|
table: "Containers",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Containers",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
}
|
|
}
|
|
}
|