Отчистка кода

This commit is contained in:
2025-04-24 17:58:58 +04:00
parent 31ad99ade5
commit cc7e97b6ff
20 changed files with 1972 additions and 1562 deletions
+14 -12
View File
@@ -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 />
File diff suppressed because it is too large Load Diff