Bugzilla – Attachment 128441 Details for
Bug 29605
DB structure may not be synced with kohastructure.sql
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29605: additional_contents.code
Bug-29605-additionalcontentscode.patch (text/plain), 2.20 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-12-13 11:15:50 UTC
(
hide
)
Description:
Bug 29605: additional_contents.code
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-12-13 11:15:50 UTC
Size:
2.20 KB
patch
obsolete
>From 5f345aead299d5717ce9dc6b64515032c2324440 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 2 Dec 2021 12:28:23 +0100 >Subject: [PATCH] Bug 29605: additional_contents.code > >Added 100 on 210600016, but 20 in kohastructure > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > installer/data/mysql/atomicupdate/bug_29605.pl | 8 ++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 9 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_29605.pl b/installer/data/mysql/atomicupdate/bug_29605.pl >index a6bbbb08de..5e973d7cd3 100755 >--- a/installer/data/mysql/atomicupdate/bug_29605.pl >+++ b/installer/data/mysql/atomicupdate/bug_29605.pl >@@ -43,6 +43,14 @@ return { > ); > say $out "Ensure NOT NULL on account_offsets.type"; > >+ $dbh->do( >+ q{ >+ ALTER TABLE `additional_contents` >+ MODIFY COLUMN `code` VARCHAR(100) NOT NULL >+ } >+ ); >+ say $out "Ensure additional_contents.code is VARCHAR(100)"; >+ > }, > > } >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 91877d51b3..292beedf5d 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -191,7 +191,7 @@ DROP TABLE IF EXISTS `additional_contents`; > CREATE TABLE `additional_contents` ( > `idnew` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'unique identifier for the additional content', > `category` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'category for the additional content', >- `code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'code to group content per lang', >+ `code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'code to group content per lang', > `location` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'location of the additional content', > `branchcode` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'branch code users to create branch specific additional content, NULL is every branch.', > `title` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'title of the additional content', >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29605
:
128113
|
128114
|
128152
|
128153
|
128154
|
128155
|
128156
|
128157
|
128158
|
128239
|
128313
|
128314
|
128437
|
128438
|
128439
|
128440
|
128441
|
128442
|
128443
|
128444
|
128445
|
128483
|
129153
|
129154
|
129155
|
129156
|
129157
|
129158
|
129159
|
129160
|
129161