diff options
| author | Victor S <57849063+transtrike@users.noreply.github.com> | 2021-04-02 23:55:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-02 23:55:25 +0300 |
| commit | bad7456b379bcc683431e2279591f7c5227bd55a (patch) | |
| tree | b82e15d10e28759dcd066b38ccdd16c23753b33c /src/Data/DevHive.Data/Migrations/20210225193352_rating_migration.cs | |
| parent | 2448c4d31188aed26605c5e3c282bacc3bd71ae5 (diff) | |
| parent | b0c6c6e1795a1cc8fe82a60ce16a263ab4cad397 (diff) | |
| download | DevHive-bad7456b379bcc683431e2279591f7c5227bd55a.tar DevHive-bad7456b379bcc683431e2279591f7c5227bd55a.tar.gz DevHive-bad7456b379bcc683431e2279591f7c5227bd55a.zip | |
Merge pull request #24 from Team-Kaleidoscope/feature/profile_picture_implementation
- Removed InsertProfilePicture from Service layer (unneeded)
- ReadProfilePicture endpoint implemented
Diffstat (limited to 'src/Data/DevHive.Data/Migrations/20210225193352_rating_migration.cs')
| -rw-r--r-- | src/Data/DevHive.Data/Migrations/20210225193352_rating_migration.cs | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/src/Data/DevHive.Data/Migrations/20210225193352_rating_migration.cs b/src/Data/DevHive.Data/Migrations/20210225193352_rating_migration.cs deleted file mode 100644 index da81cdc..0000000 --- a/src/Data/DevHive.Data/Migrations/20210225193352_rating_migration.cs +++ /dev/null @@ -1,139 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace DevHive.Data.Migrations -{ - public partial class rating_migration : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Rating_Posts_PostId", - table: "Rating"); - - migrationBuilder.DropIndex( - name: "IX_Rating_PostId", - table: "Rating"); - - migrationBuilder.DropColumn( - name: "Rate", - table: "Rating"); - - migrationBuilder.AlterColumn<Guid>( - name: "PostId", - table: "Rating", - type: "uuid", - nullable: true, - oldClrType: typeof(Guid), - oldType: "uuid"); - - migrationBuilder.AddColumn<bool>( - name: "IsLike", - table: "Rating", - type: "boolean", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn<Guid>( - name: "UserId", - table: "Rating", - type: "uuid", - nullable: true); - - migrationBuilder.AddColumn<int>( - name: "CurrentRating", - table: "Posts", - type: "integer", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_Rating_PostId", - table: "Rating", - column: "PostId"); - - migrationBuilder.CreateIndex( - name: "IX_Rating_UserId", - table: "Rating", - column: "UserId"); - - migrationBuilder.AddForeignKey( - name: "FK_Rating_AspNetUsers_UserId", - table: "Rating", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - - migrationBuilder.AddForeignKey( - name: "FK_Rating_Posts_PostId", - table: "Rating", - column: "PostId", - principalTable: "Posts", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Rating_AspNetUsers_UserId", - table: "Rating"); - - migrationBuilder.DropForeignKey( - name: "FK_Rating_Posts_PostId", - table: "Rating"); - - migrationBuilder.DropIndex( - name: "IX_Rating_PostId", - table: "Rating"); - - migrationBuilder.DropIndex( - name: "IX_Rating_UserId", - table: "Rating"); - - migrationBuilder.DropColumn( - name: "IsLike", - table: "Rating"); - - migrationBuilder.DropColumn( - name: "UserId", - table: "Rating"); - - migrationBuilder.DropColumn( - name: "CurrentRating", - table: "Posts"); - - migrationBuilder.AlterColumn<Guid>( - name: "PostId", - table: "Rating", - type: "uuid", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), - oldClrType: typeof(Guid), - oldType: "uuid", - oldNullable: true); - - migrationBuilder.AddColumn<int>( - name: "Rate", - table: "Rating", - type: "integer", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_Rating_PostId", - table: "Rating", - column: "PostId", - unique: true); - - migrationBuilder.AddForeignKey( - name: "FK_Rating_Posts_PostId", - table: "Rating", - column: "PostId", - principalTable: "Posts", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - } -} |
