Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Migrations
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
libraries
Migrations
Merge requests
!95
New: Index on Log table
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New: Index on Log table
Issue/2284-dbLogIndex
into
master
Overview
0
Commits
5
Pipelines
5
Changes
2
Merged
Petar Hristov
requested to merge
Issue/2284-dbLogIndex
into
master
2 years ago
Overview
0
Commits
5
Pipelines
5
Changes
2
Expand
coscine/issues#2284
MR to
master
is intended. Has to be released swiftly.
Edited
2 years ago
by
Petar Hristov
0
0
Merge request reports
Compare
master
version 4
439f53e2
2 years ago
version 3
7695433b
2 years ago
version 2
f51cd3dc
2 years ago
version 1
c35c2a42
2 years ago
master (base)
and
latest version
latest version
e3ee6137
5 commits,
2 years ago
version 4
439f53e2
4 commits,
2 years ago
version 3
7695433b
3 commits,
2 years ago
version 2
f51cd3dc
2 commits,
2 years ago
version 1
c35c2a42
1 commit,
2 years ago
2 files
+
23
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/Migrations/Migrations/Migration202211040919LogDbIndex.cs
0 → 100644
+
22
−
0
Options
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
Loading