using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Moonlight.ApiServer.Database.Migrations { /// public partial class AddedThemes : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Core_Themes", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), IsEnabled = table.Column(type: "boolean", nullable: false), Name = table.Column(type: "text", nullable: false), Author = table.Column(type: "text", nullable: false), Version = table.Column(type: "text", nullable: false), UpdateUrl = table.Column(type: "text", nullable: true), DonateUrl = table.Column(type: "text", nullable: true), Content = table.Column(type: "jsonb", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Core_Themes", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Core_Themes"); } } }