Bugzilla – Attachment 133898 Details for
Bug 30620
Add a warning close to /*!VERSION lines in kohastructure.sql
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30620: Add a warning about /*!VERSION lines in kohastructure
Bug-30620-Add-a-warning-about-VERSION-lines-in-koh.patch (text/plain), 1.94 KB, created by
Martin Renvoize (ashimema)
on 2022-04-26 13:38:02 UTC
(
hide
)
Description:
Bug 30620: Add a warning about /*!VERSION lines in kohastructure
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-04-26 13:38:02 UTC
Size:
1.94 KB
patch
obsolete
>From d609c9d9d4d9e55316df4e86c0de63613fe0ae76 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 26 Apr 2022 11:45:52 +0000 >Subject: [PATCH] Bug 30620: Add a warning about /*!VERSION lines in > kohastructure > >Also adding a similar comment in C4::Installer. > >No test plan, just documentation. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Installer.pm | 1 + > installer/data/mysql/kohastructure.sql | 5 +++++ > 2 files changed, 6 insertions(+) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index ff9c2b170f..723d47227b 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -285,6 +285,7 @@ sub load_db_schema { > my $datadir = C4::Context->config('intranetdir') . "/installer/data/$self->{dbms}"; > > # Disable checks before load >+ # NOTE: These lines are found in kohastructure itself, but DBIx::RunSQL ignores them! > $self->{'dbh'}->do(q{SET NAMES utf8mb4}); > $self->{'dbh'}->do(q{SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0}); > $self->{'dbh'}->do(q{SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0}); >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 8f5f7b438f..5380e8c4f2 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -4,6 +4,11 @@ > -- ------------------------------------------------------ > -- Server version 10.6.5-MariaDB-1:10.6.5+maria~focal > >+-- IMPORTANT NOTE: >+-- The lines with /*! are silently IGNORED when the web installer runs this >+-- file (in C4::Installer, using DBIx::RunSQL). >+-- The lines only work when you run this sql script directly with mysql. >+ > /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; > /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; > /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; >-- >2.20.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 30620
:
133876
| 133898