41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
|
|||
|
namespace VetClinicDatabaseImplement.Migrations
|
|||
|
{
|
|||
|
public partial class payment : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.RenameColumn(
|
|||
|
name: "Remains",
|
|||
|
table: "Visits",
|
|||
|
newName: "Sum");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<decimal>(
|
|||
|
name: "Remains",
|
|||
|
table: "Payments",
|
|||
|
type: "decimal(18,2)",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0m);
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Remains",
|
|||
|
table: "Payments");
|
|||
|
|
|||
|
migrationBuilder.RenameColumn(
|
|||
|
name: "Sum",
|
|||
|
table: "Visits",
|
|||
|
newName: "Remains");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|