aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Migrations/20210204133241_AddColor.cs
blob: 96ad584c77e036177287abd11cba3e5624e06ddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Microsoft.EntityFrameworkCore.Migrations;

namespace Timeline.Migrations
{
    public partial class AddColor : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "color",
                table: "timelines",
                type: "TEXT",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "color",
                table: "timeline_posts",
                type: "TEXT",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "color",
                table: "timelines");

            migrationBuilder.DropColumn(
                name: "color",
                table: "timeline_posts");
        }
    }
}