36 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace turf_tasker.Migrations
 | |
| {
 | |
|     /// <inheritdoc />
 | |
|     public partial class AddLawnCareTips : Migration
 | |
|     {
 | |
|         /// <inheritdoc />
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.CreateTable(
 | |
|                 name: "LawnCareTips",
 | |
|                 columns: table => new
 | |
|                 {
 | |
|                     Id = table.Column<int>(type: "INTEGER", nullable: false)
 | |
|                         .Annotation("Sqlite:Autoincrement", true),
 | |
|                     Title = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
 | |
|                     Category = table.Column<int>(type: "INTEGER", nullable: false),
 | |
|                     Content = table.Column<string>(type: "TEXT", nullable: false)
 | |
|                 },
 | |
|                 constraints: table =>
 | |
|                 {
 | |
|                     table.PrimaryKey("PK_LawnCareTips", x => x.Id);
 | |
|                 });
 | |
|         }
 | |
| 
 | |
|         /// <inheritdoc />
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropTable(
 | |
|                 name: "LawnCareTips");
 | |
|         }
 | |
|     }
 | |
| }
 | 
