36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace DysonNetwork.Ring.Migrations
 | |
| {
 | |
|     /// <inheritdoc />
 | |
|     public partial class UpdateNotificationMeta : Migration
 | |
|     {
 | |
|         /// <inheritdoc />
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AlterColumn<Dictionary<string, object>>(
 | |
|                 name: "meta",
 | |
|                 table: "notifications",
 | |
|                 type: "jsonb",
 | |
|                 nullable: false,
 | |
|                 oldClrType: typeof(Dictionary<string, object>),
 | |
|                 oldType: "jsonb",
 | |
|                 oldNullable: true);
 | |
|         }
 | |
| 
 | |
|         /// <inheritdoc />
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AlterColumn<Dictionary<string, object>>(
 | |
|                 name: "meta",
 | |
|                 table: "notifications",
 | |
|                 type: "jsonb",
 | |
|                 nullable: true,
 | |
|                 oldClrType: typeof(Dictionary<string, object>),
 | |
|                 oldType: "jsonb");
 | |
|         }
 | |
|     }
 | |
| }
 |