mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
ee2c88428b
commit
d81269aeb2
2 changed files with 26 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Migrations\Extensions\" />
|
||||
<Folder Include="wwwroot\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -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));");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue