using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace NadekoBot.Migrations.PostgreSql { /// public partial class fishskill : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "userfishstats", columns: table => new { id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), userid = table.Column(type: "numeric(20,0)", nullable: false), skill = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("pk_userfishstats", x => x.id); }); migrationBuilder.CreateIndex( name: "ix_userfishstats_userid", table: "userfishstats", column: "userid", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "userfishstats"); } } }