Skip to content

Commit

Permalink
chore: cleanup migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
EnisMulic committed Nov 1, 2023
1 parent 14f9937 commit df2d5d9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 180 deletions.

This file was deleted.

This file was deleted.

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

Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using Microsoft.EntityFrameworkCore.Migrations;
using System;

Check warning on line 1 in src/Application/Infrastructure/Persistance/Migrations/20231101065756_Init.cs

View workflow job for this annotation

GitHub Actions / build

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check warning on line 1 in src/Application/Infrastructure/Persistance/Migrations/20231101065756_Init.cs

View workflow job for this annotation

GitHub Actions / build

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Application.Infrastructure.Persistance.Migrations
{
/// <inheritdoc />
public partial class init : Migration
public partial class Init : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
Expand All @@ -23,7 +24,10 @@ protected override void Up(MigrationBuilder migrationBuilder)
LastModified = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifiedBy = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table => table.PrimaryKey("PK_TodoLists", x => x.Id));
constraints: table =>

Check warning on line 27 in src/Application/Infrastructure/Persistance/Migrations/20231101065756_Init.cs

View workflow job for this annotation

GitHub Actions / build

Use expression body for lambda expression (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0053)
{
table.PrimaryKey("PK_TodoLists", x => x.Id);
});

migrationBuilder.CreateTable(
name: "TodoItems",
Expand All @@ -36,6 +40,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
PriorityLevel = table.Column<int>(type: "int", nullable: false),
Done = table.Column<bool>(type: "bit", nullable: false),
Reminder = table.Column<DateTime>(type: "datetime2", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
TodoListId = table.Column<int>(type: "int", nullable: false),
Created = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatedBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
Expand Down Expand Up @@ -69,4 +74,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
name: "TodoLists");
}
}
}
}

0 comments on commit df2d5d9

Please sign in to comment.