groundwork for #395

wip
This commit is contained in:
Collin M. Barrett 2018-08-25 15:51:57 -05:00
parent ee2c88428b
commit d81269aeb2
2 changed files with 26 additions and 0 deletions

View file

@ -29,6 +29,7 @@
</PropertyGroup>
<ItemGroup>
<Folder Include="Migrations\Extensions\" />
<Folder Include="wwwroot\" />
</ItemGroup>

View file

@ -0,0 +1,25 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
using Microsoft.EntityFrameworkCore.Migrations.Operations.Builders;
namespace FilterLists.Api.Migrations.Extensions
{
public static class MigrationBuilderExtensions
{
public static OperationBuilder<SqlOperation> CreateIndex(this MigrationBuilder migrationBuilder, string name,
string table, string column, int prefixLength, string schema = null, bool unique = false,
string filter = null)
{
throw new NotImplementedException();
//return migrationBuilder.Sql($"CREATE INDEX {name} ON {table} (key(10));");
}
public static OperationBuilder<SqlOperation> DropIndex(this MigrationBuilder migrationBuilder, string name,
string table = null, string schema = null)
{
throw new NotImplementedException();
//return migrationBuilder.Sql($"CREATE INDEX index_name ON misc_info (key(10));");
}
}
}