Skip to content
Snippets Groups Projects
Select Git revision
  • ef16ca3d78625ac6d25527c1af5bfe3eeb9d8906
  • main default protected
  • step-3263
  • feature/plugins-cli
  • feature/vite
  • step-2484-peerreview
  • biest/issue-5051
  • tests/simplify-jsonapi-tests
  • fix/typo-in-1a70031
  • feature/broadcasting
  • database-seeders-and-factories
  • feature/peer-review-2
  • feature-feedback-jsonapi
  • feature/peerreview
  • feature/balloon-plus
  • feature/stock-images-unsplash
  • tic-2588
  • 5.0
  • 5.2
  • biest/unlock-blocks
  • biest-1514
21 results

5.2.7_add_comment_to_help_content.php

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    5.2.7_add_comment_to_help_content.php 518 B
    <?php
    
    
    class AddCommentToHelpContent extends Migration
    {
        public function description()
        {
            return 'Adds the column "comment" to the help_content table.';
        }
    
    
        protected function up()
        {
            DBManager::get()->exec(
                "ALTER IGNORE TABLE `help_content`
                ADD COLUMN comment TEXT NULL"
            );
        }
    
    
        protected function down()
        {
            DBManager::get()->exec(
                "ALTER IGNORE TABLE `help_content`
                DROP COLUMN comment"
            );
        }
    }