Skip to content

Commit

Permalink
Removed default value for PurchaseType, and made them non-nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
TTA777 committed Sep 21, 2023
1 parent 8d6f29d commit c0635a6
Show file tree
Hide file tree
Showing 3 changed files with 628 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ public partial class AddPurchaseTypes : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "PurchaseId",
schema: "dbo",
table: "Vouchers",
type: "int",
nullable: true);

migrationBuilder.AddColumn<string>(
name: "Type",
schema: "dbo",
table: "Purchases",
type: "nvarchar(max)",
nullable: true);

migrationBuilder.CreateTable(
name: "PosPurchases",
schema: "dbo",
Expand Down
Loading

0 comments on commit c0635a6

Please sign in to comment.