Skip to content

Commit f0aa969

Browse files
Update Migrations
1 parent 5367a56 commit f0aa969

File tree

3 files changed

+546
-205
lines changed

3 files changed

+546
-205
lines changed

EssentialCSharp.Web/Migrations/20240925214247_ReferralIdAndCount.Designer.cs

Lines changed: 295 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using Microsoft.EntityFrameworkCore.Migrations;
2+
3+
#nullable disable
4+
5+
namespace EssentialCSharp.Web.Migrations
6+
{
7+
/// <inheritdoc />
8+
public partial class ReferralIdAndCount : Migration
9+
{
10+
/// <inheritdoc />
11+
protected override void Up(MigrationBuilder migrationBuilder)
12+
{
13+
migrationBuilder.AddColumn<int>(
14+
name: "ReferralCount",
15+
table: "AspNetUsers",
16+
type: "int",
17+
nullable: false,
18+
defaultValue: 0);
19+
20+
migrationBuilder.AddColumn<string>(
21+
name: "ReferrerId",
22+
table: "AspNetUsers",
23+
type: "nvarchar(max)",
24+
nullable: true);
25+
}
26+
27+
/// <inheritdoc />
28+
protected override void Down(MigrationBuilder migrationBuilder)
29+
{
30+
migrationBuilder.DropColumn(
31+
name: "ReferralCount",
32+
table: "AspNetUsers");
33+
34+
migrationBuilder.DropColumn(
35+
name: "ReferrerId",
36+
table: "AspNetUsers");
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)