30 lines
		
	
	
		
			818 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			818 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace DysonNetwork.Pass.Migrations
 | |
| {
 | |
|     /// <inheritdoc />
 | |
|     public partial class CacheSocialCreditsInProfile : Migration
 | |
|     {
 | |
|         /// <inheritdoc />
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<double>(
 | |
|                 name: "social_credits",
 | |
|                 table: "account_profiles",
 | |
|                 type: "double precision",
 | |
|                 nullable: false,
 | |
|                 defaultValue: 0.0);
 | |
|         }
 | |
| 
 | |
|         /// <inheritdoc />
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "social_credits",
 | |
|                 table: "account_profiles");
 | |
|         }
 | |
|     }
 | |
| }
 |