49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace OnlyPrompt.Backend.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class PromptCreateDetails : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ExampleImageUrl",
|
|
table: "Prompts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ExampleOutput",
|
|
table: "Prompts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "Price",
|
|
table: "Prompts",
|
|
type: "numeric",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ExampleImageUrl",
|
|
table: "Prompts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ExampleOutput",
|
|
table: "Prompts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Price",
|
|
table: "Prompts");
|
|
}
|
|
}
|
|
}
|