using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Hutopy.Infrastructure.Data.Migrations { /// public partial class AddFuturCreators : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Name", table: "AspNetUserTokens", type: "nvarchar(450)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "LoginProvider", table: "AspNetUserTokens", type: "nvarchar(450)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "ProviderKey", table: "AspNetUserLogins", type: "nvarchar(450)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "LoginProvider", table: "AspNetUserLogins", type: "nvarchar(450)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128); migrationBuilder.CreateTable( name: "FutureCreators", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), FirstName = table.Column(type: "nvarchar(max)", nullable: false), LastName = table.Column(type: "nvarchar(max)", nullable: false), EmailAddress = table.Column(type: "nvarchar(max)", nullable: false), PhoneNumber = table.Column(type: "nvarchar(max)", nullable: false), SocialNetworkAccount = table.Column(type: "nvarchar(max)", nullable: false), ReasonToJoin = table.Column(type: "nvarchar(max)", nullable: false), Created = table.Column(type: "datetimeoffset", nullable: false), CreatedBy = table.Column(type: "nvarchar(max)", nullable: true), LastModified = table.Column(type: "datetimeoffset", nullable: false), LastModifiedBy = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_FuturCreators", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "FutureCreators"); migrationBuilder.AlterColumn( name: "Name", table: "AspNetUserTokens", type: "nvarchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(450)"); migrationBuilder.AlterColumn( name: "LoginProvider", table: "AspNetUserTokens", type: "nvarchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(450)"); migrationBuilder.AlterColumn( name: "ProviderKey", table: "AspNetUserLogins", type: "nvarchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(450)"); migrationBuilder.AlterColumn( name: "LoginProvider", table: "AspNetUserLogins", type: "nvarchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(450)"); } } }