You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi.Store/Migrations/OmbiSqlite/20210106134000_UserStreamin...

27 lines
787 B

using Microsoft.EntityFrameworkCore.Migrations;
namespace Ombi.Store.Migrations.OmbiSqlite
{
public partial class UserStreamingCountry : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "StreamingCountry",
table: "AspNetUsers",
type: "TEXT",
nullable: false,
defaultValue: "US");
migrationBuilder.Sql("UPDATE AspNetUsers SET StreamingCountry = 'US'");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "StreamingCountry",
table: "AspNetUsers");
}
}
}