mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-09-30 06:33:13 +00:00
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace ProposalSystem.Infrastructure.Data.Migrations
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class AddProposalLineItemVersion : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AddColumn<long>(
|
|||
|
|
name: "Version",
|
|||
|
|
table: "Proposals",
|
|||
|
|
type: "bigint",
|
|||
|
|
nullable: false,
|
|||
|
|
defaultValue: 1L);
|
|||
|
|
|
|||
|
|
migrationBuilder.AddColumn<long>(
|
|||
|
|
name: "Version",
|
|||
|
|
table: "LineItems",
|
|||
|
|
type: "bigint",
|
|||
|
|
nullable: false,
|
|||
|
|
defaultValue: 1L);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "Version",
|
|||
|
|
table: "Proposals");
|
|||
|
|
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "Version",
|
|||
|
|
table: "LineItems");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|