49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ManagerService.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ReplaceWeightWithGridSpans : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "WeightMasonryGrid",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "GridColSpan",
|
|
table: "AppConfigurationLinks",
|
|
type: "integer",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "GridRowSpan",
|
|
table: "AppConfigurationLinks",
|
|
type: "integer",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "GridColSpan",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "GridRowSpan",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "WeightMasonryGrid",
|
|
table: "AppConfigurationLinks",
|
|
type: "double precision",
|
|
nullable: true);
|
|
}
|
|
}
|
|
}
|