All checks were successful
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Successful in 27s
31 lines
806 B
C#
31 lines
806 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Webshop.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class row : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<byte[]>(
|
|
name: "RowVersion",
|
|
table: "Products",
|
|
type: "bytea",
|
|
rowVersion: true,
|
|
nullable: false,
|
|
defaultValue: new byte[0]);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "RowVersion",
|
|
table: "Products");
|
|
}
|
|
}
|
|
}
|