30 lines
		
	
	
		
			773 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			773 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using DysonNetwork.Shared.Models;
 | |
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace DysonNetwork.Sphere.Migrations
 | |
| {
 | |
|     /// <inheritdoc />
 | |
|     public partial class AddPostEmbedView : Migration
 | |
|     {
 | |
|         /// <inheritdoc />
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<PostEmbedView>(
 | |
|                 name: "embed_view",
 | |
|                 table: "posts",
 | |
|                 type: "jsonb",
 | |
|                 nullable: true);
 | |
|         }
 | |
| 
 | |
|         /// <inheritdoc />
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "embed_view",
 | |
|                 table: "posts");
 | |
|         }
 | |
|     }
 | |
| }
 |