diff options
Diffstat (limited to 'src/DevHive.Data/Migrations/20210203071720_ProfilePicture.cs')
| -rw-r--r-- | src/DevHive.Data/Migrations/20210203071720_ProfilePicture.cs | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/DevHive.Data/Migrations/20210203071720_ProfilePicture.cs b/src/DevHive.Data/Migrations/20210203071720_ProfilePicture.cs deleted file mode 100644 index 1b0c2c6..0000000 --- a/src/DevHive.Data/Migrations/20210203071720_ProfilePicture.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace DevHive.Data.Migrations -{ - public partial class ProfilePicture : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ProfilePictureUrl", - table: "AspNetUsers"); - - migrationBuilder.CreateTable( - name: "ProfilePicture", - columns: table => new - { - Id = table.Column<Guid>(type: "uuid", nullable: false), - UserId = table.Column<Guid>(type: "uuid", nullable: false), - PictureURL = table.Column<string>(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ProfilePicture", x => x.Id); - table.ForeignKey( - name: "FK_ProfilePicture_AspNetUsers_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_ProfilePicture_UserId", - table: "ProfilePicture", - column: "UserId", - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ProfilePicture"); - - migrationBuilder.AddColumn<string>( - name: "ProfilePictureUrl", - table: "AspNetUsers", - type: "text", - nullable: true); - } - } -} |
