Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OSKA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Plugins
OSKA
Commits
084437e5
Commit
084437e5
authored
3 years ago
by
Manuel Schwarz
Browse files
Options
Downloads
Patches
Plain Diff
Fix collation for OSKA DB tables (was very slow in production).
parent
5856eaae
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
migrations/003_fix_collation.php
+32
-0
32 additions, 0 deletions
migrations/003_fix_collation.php
plugin.manifest
+1
-1
1 addition, 1 deletion
plugin.manifest
with
33 additions
and
1 deletion
migrations/003_fix_collation.php
0 → 100644
+
32
−
0
View file @
084437e5
<?php
class
FixCollation
extends
Migration
{
public
function
description
()
{
return
'fix collation for OSKA tables'
;
}
public
function
up
()
{
$db
=
DBManager
::
get
();
$sql
=
'ALTER TABLE oska_mentors
CHANGE user_id user_id VARCHAR(32) COLLATE latin1_bin NOT NULL,
CHANGE teacher teacher TINYINT(1) NOT NULL DEFAULT 0'
;
$db
->
exec
(
$sql
);
$sql
=
'ALTER TABLE oska_mentees
CHANGE user_id user_id VARCHAR(32) COLLATE latin1_bin NOT NULL'
;
$db
->
exec
(
$sql
);
$sql
=
'ALTER TABLE oska_matches
CHANGE mentor_id mentor_id VARCHAR(32) COLLATE latin1_bin NOT NULL,
CHANGE mentee_id mentee_id VARCHAR(32) COLLATE latin1_bin NOT NULL'
;
$db
->
exec
(
$sql
);
}
public
function
down
()
{
}
}
This diff is collapsed.
Click to expand it.
plugin.manifest
+
1
−
1
View file @
084437e5
pluginclassname=OSKA
pluginname=OSKA
origin=virtUOS
version=1.0.
8
version=1.0.
9
studipMinVersion=4.0
studipMaxVersion=4.6.99
category=Kommunikation und Zusammenarbeit
...
...
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