Skip to content

Commit

Permalink
migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Oktawian-L committed Nov 8, 2019
1 parent 5560948 commit 88c3657
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions SubitonAPI/SubitonAPI/Migrations/20191108192541_addedpublicid.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;

namespace SubitonAPI.Migrations
{
public partial class addedpublicid : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "public_id",
table: "Photos",
nullable: true);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "public_id",
table: "Photos");
}
}
}
3 changes: 3 additions & 0 deletions SubitonAPI/SubitonAPI/Migrations/DataContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<int?>("UserId")
.HasColumnType("INTEGER");

b.Property<string>("public_id")
.HasColumnType("TEXT");

b.Property<int>("set_user_nrid")
.HasColumnType("INTEGER");

Expand Down
Binary file modified SubitonAPI/SubitonAPI/Subiton.db
Binary file not shown.

0 comments on commit 88c3657

Please sign in to comment.