Отчистка кода
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Pf2eModel.Model.Structure;
|
||||
using static LinqToDB.Common.Configuration;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
using System.Buffers;
|
||||
|
||||
#nullable disable
|
||||
|
||||
@@ -14,7 +10,8 @@ public partial class Function : Migration
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("""
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
CREATE OR REPLACE FUNCTION f_truncate_tables()
|
||||
RETURNS void
|
||||
LANGUAGE plpgsql AS
|
||||
@@ -30,8 +27,10 @@ BEGIN
|
||||
);
|
||||
END
|
||||
$func$;
|
||||
""");
|
||||
migrationBuilder.Sql("""
|
||||
"""
|
||||
);
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
CREATE OR REPLACE FUNCTION f_drop_tables()
|
||||
RETURNS void
|
||||
LANGUAGE plpgsql AS
|
||||
@@ -46,8 +45,10 @@ BEGIN
|
||||
);
|
||||
END
|
||||
$func$;
|
||||
""");
|
||||
migrationBuilder.Sql("""
|
||||
"""
|
||||
);
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
CREATE OR REPLACE FUNCTION f_permission_tables(_username text)
|
||||
RETURNS void
|
||||
LANGUAGE plpgsql AS
|
||||
@@ -68,7 +69,8 @@ $func$;
|
||||
"""
|
||||
);
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
CREATE OR REPLACE FUNCTION locale_search(data jsonb, search_value text)
|
||||
RETURNS boolean
|
||||
LANGUAGE plpgsql AS
|
||||
@@ -80,7 +82,8 @@ $func$;
|
||||
"""
|
||||
);
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
CREATE OR REPLACE FUNCTION locale_search_array(data jsonb, search_values text[])
|
||||
RETURNS boolean
|
||||
LANGUAGE plpgsql AS
|
||||
@@ -95,7 +98,6 @@ END;
|
||||
$func$;
|
||||
"""
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user