diff options
| author | crupest <crupest@outlook.com> | 2020-08-27 00:47:52 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-08-27 00:47:52 +0800 | 
| commit | 7a974f5284f19e7b2248f633bcbd5e263aeddf81 (patch) | |
| tree | 03b062a7be184e992a19f0f6f8a9ebc7e12f1eb3 /Timeline/Migrations/20200826164553_TimelineAddTitle.cs | |
| parent | b2404a381178e962a09af018d3c0031f1918991a (diff) | |
| download | timeline-7a974f5284f19e7b2248f633bcbd5e263aeddf81.tar.gz timeline-7a974f5284f19e7b2248f633bcbd5e263aeddf81.tar.bz2 timeline-7a974f5284f19e7b2248f633bcbd5e263aeddf81.zip  | |
Database add title to timeline.
Diffstat (limited to 'Timeline/Migrations/20200826164553_TimelineAddTitle.cs')
| -rw-r--r-- | Timeline/Migrations/20200826164553_TimelineAddTitle.cs | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/Timeline/Migrations/20200826164553_TimelineAddTitle.cs b/Timeline/Migrations/20200826164553_TimelineAddTitle.cs new file mode 100644 index 00000000..7e8c498b --- /dev/null +++ b/Timeline/Migrations/20200826164553_TimelineAddTitle.cs @@ -0,0 +1,22 @@ +using Microsoft.EntityFrameworkCore.Migrations;
 +
 +namespace Timeline.Migrations
 +{
 +    public partial class TimelineAddTitle : Migration
 +    {
 +        protected override void Up(MigrationBuilder migrationBuilder)
 +        {
 +            migrationBuilder.AddColumn<string>(
 +                name: "title",
 +                table: "timelines",
 +                nullable: true);
 +        }
 +
 +        protected override void Down(MigrationBuilder migrationBuilder)
 +        {
 +            migrationBuilder.DropColumn(
 +                name: "title",
 +                table: "timelines");
 +        }
 +    }
 +}
  | 
