View | Details | Raw Unified | Return to bug 41460
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_41460.pl (+18 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "41460",
6
    description => "Remove column default from systempreferences.value",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(q{MODIFY COLUMN `value` mediumtext NOT NULL COMMENT 'system preference values'});
13
14
        # Print useful stuff here
15
        # tables
16
        say $out "Removed default from column 'systempreferences.value'";
17
    },
18
};
(-)a/installer/data/mysql/db_revs/250600005.pl (-1 / +1 lines)
Lines 23-29 return { Link Here
23
        $dbh->do(
23
        $dbh->do(
24
            q{
24
            q{
25
            ALTER TABLE systempreferences
25
            ALTER TABLE systempreferences
26
            MODIFY COLUMN `value` mediumtext NOT NULL DEFAULT '' COMMENT 'system preference values'
26
            MODIFY COLUMN `value` mediumtext NOT NULL COMMENT 'system preference values'
27
        }
27
        }
28
        );
28
        );
29
    },
29
    },
(-)a/installer/data/mysql/kohastructure.sql (-2 / +1 lines)
Lines 6677-6683 DROP TABLE IF EXISTS `systempreferences`; Link Here
6677
/*!40101 SET character_set_client = utf8mb4 */;
6677
/*!40101 SET character_set_client = utf8mb4 */;
6678
CREATE TABLE `systempreferences` (
6678
CREATE TABLE `systempreferences` (
6679
  `variable` varchar(50) NOT NULL DEFAULT '' COMMENT 'system preference name',
6679
  `variable` varchar(50) NOT NULL DEFAULT '' COMMENT 'system preference name',
6680
  `value` mediumtext NOT NULL DEFAULT '' COMMENT 'system preference values',
6680
  `value` mediumtext NOT NULL COMMENT 'system preference values',
6681
  `options` longtext DEFAULT NULL COMMENT 'options for multiple choice system preferences',
6681
  `options` longtext DEFAULT NULL COMMENT 'options for multiple choice system preferences',
6682
  `explanation` mediumtext DEFAULT NULL COMMENT 'descriptive text for the system preference',
6682
  `explanation` mediumtext DEFAULT NULL COMMENT 'descriptive text for the system preference',
6683
  `type` varchar(20) DEFAULT NULL COMMENT 'type of question this preference asks (multiple choice, plain text, yes or no, etc)',
6683
  `type` varchar(20) DEFAULT NULL COMMENT 'type of question this preference asks (multiple choice, plain text, yes or no, etc)',
6684
- 

Return to bug 41460