using Microsoft.EntityFrameworkCore.Migrations; namespace AsbCloudDb.Migrations { public partial class AddUserColumns : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "email", table: "t_user", type: "character varying(255)", maxLength: 255, nullable: true, comment: "должность"); migrationBuilder.AddColumn( name: "phone", table: "t_user", type: "character varying(50)", maxLength: 50, nullable: true, comment: "номер телефона"); migrationBuilder.AddColumn( name: "position", table: "t_user", type: "character varying(255)", maxLength: 255, nullable: true, comment: "email"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "email", table: "t_user"); migrationBuilder.DropColumn( name: "phone", table: "t_user"); migrationBuilder.DropColumn( name: "position", table: "t_user"); } } }