migration
All checks were successful
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Successful in 27s
All checks were successful
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Successful in 27s
This commit is contained in:
1367
Webshop.Infrastructure/Migrations/20251107143106_row.Designer.cs
generated
Normal file
1367
Webshop.Infrastructure/Migrations/20251107143106_row.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
30
Webshop.Infrastructure/Migrations/20251107143106_row.cs
Normal file
30
Webshop.Infrastructure/Migrations/20251107143106_row.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -613,6 +613,12 @@ namespace Webshop.Infrastructure.Migrations
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("numeric(18,2)");
|
||||
|
||||
b.Property<byte[]>("RowVersion")
|
||||
.IsConcurrencyToken()
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnType("bytea");
|
||||
|
||||
b.Property<string>("SKU")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
|
||||
Reference in New Issue
Block a user