63 lines
1.7 KiB
C#
63 lines
1.7 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace ServiceStationsDataBaseImplement.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class Migration03 : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Login",
|
|||
|
table: "Clients");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Password",
|
|||
|
table: "Clients");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<double>(
|
|||
|
name: "Price",
|
|||
|
table: "Tasks",
|
|||
|
type: "float",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0.0);
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "TotalPoints",
|
|||
|
table: "Clients",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0);
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Price",
|
|||
|
table: "Tasks");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "TotalPoints",
|
|||
|
table: "Clients");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "Login",
|
|||
|
table: "Clients",
|
|||
|
type: "nvarchar(max)",
|
|||
|
nullable: false,
|
|||
|
defaultValue: "");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "Password",
|
|||
|
table: "Clients",
|
|||
|
type: "nvarchar(max)",
|
|||
|
nullable: false,
|
|||
|
defaultValue: "");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|