39 lines
1020 B
C#
39 lines
1020 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace song_of_the_day.DataMigrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class somemoremodelupdates : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Provider",
|
|
table: "Songs",
|
|
type: "integer",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SpotifyId",
|
|
table: "Songs",
|
|
type: "text",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Provider",
|
|
table: "Songs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SpotifyId",
|
|
table: "Songs");
|
|
}
|
|
}
|
|
}
|