mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-05-10 00:26:33 -04:00
Remove unused parameters Remove unnecessary casts Make fields readonly Order modifiers Format document Sort usings Remove unnecessary nullable directive Apply namespace preferences (file-level)
27 lines
561 B
C#
27 lines
561 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace DataLayer.Postgres.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class ReAddCategoryName2 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Name",
|
|
table: "Categories",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Name",
|
|
table: "Categories");
|
|
}
|
|
}
|