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
41512382
Commit
41512382
authored
2 years ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
change column type of admission_seminar_uer.comment and seminar_user.comment, fixes #830
parent
9348418c
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.26_change_seminar_user_comment_type.php
+30
-0
30 additions, 0 deletions
db/migrations/5.1.26_change_seminar_user_comment_type.php
with
30 additions
and
0 deletions
db/migrations/5.1.26_change_seminar_user_comment_type.php
0 → 100644
+
30
−
0
View file @
41512382
<?php
final
class
ChangeSeminarUserCommentType
extends
Migration
{
public
function
description
()
{
return
'Changes the type of the comment column of tables seminar_user '
.
'and admission_seminar_user to VARCHAR(255) instead of TINYTEXT'
;
}
protected
function
up
()
{
$query
=
"ALTER TABLE `admission_seminar_user`
MODIFY COLUMN `comment` VARCHAR(255) NOT NULL DEFAULT ''"
;
DBManager
::
get
()
->
exec
(
$query
);
$query
=
"ALTER TABLE `seminar_user`
MODIFY COLUMN `comment` VARCHAR(255) NOT NULL DEFAULT ''"
;
DBManager
::
get
()
->
exec
(
$query
);
}
protected
function
down
()
{
// Column seminar_user does not need to be changed since it's already
// VARCHAR(255) in db/studip.sql
$query
=
"ALTER TABLE `admission_seminar_user`
MODIFY COLUMN `comment` TINYTEXT"
;
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