-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace LinkDotNet.Blog.Infrastructure.Migrations | ||
Check failure on line 5 in src/LinkDotNet.Blog.Infrastructure/Migrations/20241203173853_BlogPost_MembersOnly.cs GitHub Actions / build
|
||
{ | ||
/// <inheritdoc /> | ||
public partial class BlogPost_MembersOnly : Migration | ||
Check failure on line 8 in src/LinkDotNet.Blog.Infrastructure/Migrations/20241203173853_BlogPost_MembersOnly.cs GitHub Actions / build
Check failure on line 8 in src/LinkDotNet.Blog.Infrastructure/Migrations/20241203173853_BlogPost_MembersOnly.cs GitHub Actions / build
|
||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<bool>( | ||
Check failure on line 13 in src/LinkDotNet.Blog.Infrastructure/Migrations/20241203173853_BlogPost_MembersOnly.cs GitHub Actions / build
Check failure on line 13 in src/LinkDotNet.Blog.Infrastructure/Migrations/20241203173853_BlogPost_MembersOnly.cs GitHub Actions / build
|
||
name: "IsMembersOnly", | ||
table: "BlogPosts", | ||
type: "INTEGER", | ||
nullable: false, | ||
defaultValue: false); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
Check failure on line 24 in src/LinkDotNet.Blog.Infrastructure/Migrations/20241203173853_BlogPost_MembersOnly.cs GitHub Actions / build
Check failure on line 24 in src/LinkDotNet.Blog.Infrastructure/Migrations/20241203173853_BlogPost_MembersOnly.cs GitHub Actions / build
|
||
name: "IsMembersOnly", | ||
table: "BlogPosts"); | ||
} | ||
} | ||
} |