172 lines
5.4 KiB
C#
172 lines
5.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace line_gestao_api.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddIndexesReportsSupport : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_VigenciaLines_Cliente",
|
|
table: "VigenciaLines",
|
|
column: "Cliente");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_VigenciaLines_DtTerminoFidelizacao",
|
|
table: "VigenciaLines",
|
|
column: "DtTerminoFidelizacao");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_VigenciaLines_Item",
|
|
table: "VigenciaLines",
|
|
column: "Item");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_VigenciaLines_Linha",
|
|
table: "VigenciaLines",
|
|
column: "Linha");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_UserDatas_Cliente",
|
|
table: "UserDatas",
|
|
column: "Cliente");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_UserDatas_Cpf",
|
|
table: "UserDatas",
|
|
column: "Cpf");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_UserDatas_Email",
|
|
table: "UserDatas",
|
|
column: "Email");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_UserDatas_Item",
|
|
table: "UserDatas",
|
|
column: "Item");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_UserDatas_Linha",
|
|
table: "UserDatas",
|
|
column: "Linha");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TrocaNumeroLines_DataTroca",
|
|
table: "TrocaNumeroLines",
|
|
column: "DataTroca");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TrocaNumeroLines_ICCID",
|
|
table: "TrocaNumeroLines",
|
|
column: "ICCID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TrocaNumeroLines_Item",
|
|
table: "TrocaNumeroLines",
|
|
column: "Item");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TrocaNumeroLines_LinhaAntiga",
|
|
table: "TrocaNumeroLines",
|
|
column: "LinhaAntiga");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TrocaNumeroLines_LinhaNova",
|
|
table: "TrocaNumeroLines",
|
|
column: "LinhaNova");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MobileLines_Skil",
|
|
table: "MobileLines",
|
|
column: "Skil");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MobileLines_Status",
|
|
table: "MobileLines",
|
|
column: "Status");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MobileLines_Usuario",
|
|
table: "MobileLines",
|
|
column: "Usuario");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_VigenciaLines_Cliente",
|
|
table: "VigenciaLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_VigenciaLines_DtTerminoFidelizacao",
|
|
table: "VigenciaLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_VigenciaLines_Item",
|
|
table: "VigenciaLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_VigenciaLines_Linha",
|
|
table: "VigenciaLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_UserDatas_Cliente",
|
|
table: "UserDatas");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_UserDatas_Cpf",
|
|
table: "UserDatas");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_UserDatas_Email",
|
|
table: "UserDatas");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_UserDatas_Item",
|
|
table: "UserDatas");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_UserDatas_Linha",
|
|
table: "UserDatas");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_TrocaNumeroLines_DataTroca",
|
|
table: "TrocaNumeroLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_TrocaNumeroLines_ICCID",
|
|
table: "TrocaNumeroLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_TrocaNumeroLines_Item",
|
|
table: "TrocaNumeroLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_TrocaNumeroLines_LinhaAntiga",
|
|
table: "TrocaNumeroLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_TrocaNumeroLines_LinhaNova",
|
|
table: "TrocaNumeroLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_MobileLines_Skil",
|
|
table: "MobileLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_MobileLines_Status",
|
|
table: "MobileLines");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_MobileLines_Usuario",
|
|
table: "MobileLines");
|
|
}
|
|
}
|
|
}
|