using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace watcher_monitoring.Migrations
{
///
public partial class serverhardwareadd : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "CpuCores",
table: "Servers",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "CpuType",
table: "Servers",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "DiskSpace",
table: "Servers",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "GpuType",
table: "Servers",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "RamSize",
table: "Servers",
type: "REAL",
nullable: false,
defaultValue: 0.0);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CpuCores",
table: "Servers");
migrationBuilder.DropColumn(
name: "CpuType",
table: "Servers");
migrationBuilder.DropColumn(
name: "DiskSpace",
table: "Servers");
migrationBuilder.DropColumn(
name: "GpuType",
table: "Servers");
migrationBuilder.DropColumn(
name: "RamSize",
table: "Servers");
}
}
}