sledgemapper/Sledgemapper.Api/Migrations/20210830220730_AddCampaignToMapGuid.cs
Michele 4c345bd044
All checks were successful
continuous-integration/drone/push Build is passing
tentative campaign map management
2021-08-30 23:30:04 +01:00

30 lines
881 B
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Sledgemapper.Api.Migrations
{
public partial class AddCampaignToMapGuid : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "CampaignId",
table: "Sessions",
type: "TEXT",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "CampaignId",
table: "Sessions",
type: "INTEGER",
nullable: false,
oldClrType: typeof(Guid),
oldType: "TEXT");
}
}
}