Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Diel
Stud.IP
Commits
c15331d0
Commit
c15331d0
authored
2 years ago
by
Ron Lucke
Browse files
Options
Downloads
Patches
Plain Diff
fix biest #736
parent
aec548e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/migrations/5.1.27_add_index_to_cw_user_progresses_v50.php
+22
-0
22 additions, 0 deletions
db/migrations/5.1.27_add_index_to_cw_user_progresses_v50.php
with
22 additions
and
0 deletions
db/migrations/5.1.27_add_index_to_cw_user_progresses_v50.php
0 → 100644
+
22
−
0
View file @
c15331d0
<?php
final
class
AddIndexToCwUserProgressesV50
extends
Migration
{
public
function
description
()
{
return
'Alter cw_user_progresses table, add index for block_id'
;
}
public
function
up
()
{
$query
=
"ALTER TABLE `cw_user_progresses`
ADD INDEX `block_id` (`block_id`)"
;
DBManager
::
get
()
->
exec
(
$query
);
}
public
function
down
()
{
$query
=
"ALTER TABLE `cw_user_progresses`
DROP INDEX `block_id`"
;
DBManager
::
get
()
->
exec
(
$query
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment