2018-12-25 16:15:33 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
|
namespace Aaru.Database.Migrations
|
2018-12-25 16:15:33 +00:00
|
|
|
|
{
|
|
|
|
|
|
// TODO: Find how to permanently create indexes
|
|
|
|
|
|
public partial class StoreMmcGetConfigurationResponse : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropIndex("IX_UsbVendors_ModifiedWhen", "UsbVendors");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropIndex("IX_UsbProducts_ModifiedWhen", "UsbProducts");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropIndex("IX_UsbProducts_ProductId", "UsbProducts");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddColumn<byte[]>("BinaryData", "MmcFeatures", nullable: true);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropColumn("BinaryData", "MmcFeatures");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex("IX_UsbVendors_ModifiedWhen", "UsbVendors", "ModifiedWhen");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex("IX_UsbProducts_ModifiedWhen", "UsbProducts", "ModifiedWhen");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex("IX_UsbProducts_ProductId", "UsbProducts", "ProductId");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|