Skip to content
Snippets Groups Projects
Commit cc9d1c52 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'Issue/2284-dbLogIndex' into 'master'

New: Index on Log table

See merge request !95
parents e3cbbe21 a14be0af
No related branches found
No related tags found
1 merge request!95New: Index on Log table
......@@ -9,7 +9,7 @@
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
<Company>IT Center, RWTH Aachen University</Company>
<Copyright>2021 IT Center, RWTH Aachen University</Copyright>
<Copyright>2022 IT Center, RWTH Aachen University</Copyright>
<Description>Migrations is a part of the Coscine group.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://git.rwth-aachen.de/coscine/backend/libraries/Migrations</PackageProjectUrl>
......
using FluentMigrator;
namespace Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[Migration(202211040919)]
public class Migration202211040919LogDbIndex : Migration
{
public override void Down()
{
Delete.Index("log_idx_userid_loglevel_servertime").OnTable("Log");
}
public override void Up()
{
Create.Index("log_idx_userid_loglevel_servertime").OnTable("Log")
.OnColumn("UserId").Ascending()
.OnColumn("LogLevel").Ascending()
.OnColumn("ServerTimestamp").Ascending();
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment