From 60ed435203f0c60d4c6fabe77aa4e87656aaf8c1 Mon Sep 17 00:00:00 2001 From: Danail Dimitrov Date: Fri, 5 Feb 2021 16:36:47 +0200 Subject: Adding some metods to Rate repo --- .../Migrations/20210203071720_ProfilePicture.cs | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/DevHive.Data/Migrations/20210203071720_ProfilePicture.cs (limited to 'src/DevHive.Data/Migrations/20210203071720_ProfilePicture.cs') 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(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: false), - PictureURL = table.Column(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( - name: "ProfilePictureUrl", - table: "AspNetUsers", - type: "text", - nullable: true); - } - } -} -- cgit v1.2.3