-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ultimaweapon/mtp
Add MTP support
- Loading branch information
Showing
18 changed files
with
646 additions
and
24 deletions.
There are no files selected for viewing
188 changes: 188 additions & 0 deletions
188
src/Ztm.Data.Entity.Postgres/Migrations/20190531140853_SupportMtp.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
src/Ztm.Data.Entity.Postgres/Migrations/20190531140853_SupportMtp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace Ztm.Data.Entity.Postgres.Migrations | ||
{ | ||
public partial class SupportMtp : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<byte[]>( | ||
name: "MtpHashValue", | ||
table: "Blocks", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<int>( | ||
name: "MtpVersion", | ||
table: "Blocks", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<byte[]>( | ||
name: "Reserved1", | ||
table: "Blocks", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<byte[]>( | ||
name: "Reserved2", | ||
table: "Blocks", | ||
nullable: true); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "MtpHashValue", | ||
table: "Blocks"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "MtpVersion", | ||
table: "Blocks"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Reserved1", | ||
table: "Blocks"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Reserved2", | ||
table: "Blocks"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.