using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace vassago.Migrations { /// public partial class ConfigInDatabase : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Configurations", columns: table => new { Id = table.Column(type: "uuid", nullable: false), DiscordTokens = table.Column>(type: "text[]", nullable: true), TwitchConfigs = table.Column>(type: "text[]", nullable: true), ExchangePairsLocation = table.Column(type: "text", nullable: true), SetupDiscordSlashCommands = table.Column(type: "boolean", nullable: false), Webhooks = table.Column>(type: "text[]", nullable: true), KafkaBootstrap = table.Column(type: "text", nullable: true), KafkaName = table.Column(type: "text", nullable: true), reportedApiUrl = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Configurations", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Configurations"); } } }