using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace song_of_the_day.DataMigrations { /// public partial class fixissueswithSpotifysessiondataforusers : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "SpotiyAuthAccessToken", table: "Users", type: "text", nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "SpotiyAuthCreatedAt", table: "Users", type: "timestamp with time zone", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "SpotiyAuthExpiresAfterSeconds", table: "Users", type: "integer", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "SpotiyAuthRefreshToken", table: "Users", type: "text", nullable: false, defaultValue: ""); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "SpotiyAuthAccessToken", table: "Users"); migrationBuilder.DropColumn( name: "SpotiyAuthCreatedAt", table: "Users"); migrationBuilder.DropColumn( name: "SpotiyAuthExpiresAfterSeconds", table: "Users"); migrationBuilder.DropColumn( name: "SpotiyAuthRefreshToken", table: "Users"); } } }