Bugzilla – Attachment 56819 Details for
Bug 17320
MySQL 5.7 doesn't work well with SQL using '0000-00-00'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17320 [DO NOT PUSH] Make 3.14.x "install"
Bug-17320-DO-NOT-PUSH-Make-314x-install.patch (text/plain), 2.26 KB, created by
Mark Tompsett
on 2016-10-24 23:53:15 UTC
(
hide
)
Description:
Bug 17320 [DO NOT PUSH] Make 3.14.x "install"
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-10-24 23:53:15 UTC
Size:
2.26 KB
patch
obsolete
>From e7c5f9e71d77a95261e21991b09a03bd4c69c577 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 24 Oct 2016 14:37:20 -0400 >Subject: [PATCH] Bug 17320 [DO NOT PUSH] Make 3.14.x "install" > >Tweak fields, so primary key is workable. >Ignore command line mysql error security warning >--- > C4/Installer.pm | 1 + > installer/data/mysql/kohastructure.sql | 4 ++-- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index 2add0e8..57ddadd 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -462,6 +462,7 @@ sub load_sql { > warn "C4::Installer::load_sql returned the following errors while attempting to load $filename:\n"; > warn "$error"; > } >+ $error =~ s/mysql: \[Warning\] Using a password on the command line interface can be insecure\.\n//g; > return $error; > } > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 2516d3e..d09fc66 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1343,7 +1343,7 @@ DROP TABLE IF EXISTS `letter`; > CREATE TABLE `letter` ( -- table for all notice templates in Koha > `module` varchar(20) NOT NULL default '', -- Koha module that triggers this notice or slip > `code` varchar(20) NOT NULL default '', -- unique identifier for this notice or slip >- `branchcode` varchar(10) default NULL, -- the branch this notice or slip is used at (branches.branchcode) >+ `branchcode` varchar(10) NOT NULL default '', -- the branch this notice or slip is used at (branches.branchcode) > `name` varchar(100) NOT NULL default '', -- plain text name for this notice or slip > `is_html` tinyint(1) default 0, -- does this notice or slip use HTML (1 for yes, 0 for no) > `title` varchar(200) NOT NULL default '', -- subject line of the notice >@@ -2445,7 +2445,7 @@ CREATE TABLE language_script_mapping ( > DROP TABLE IF EXISTS `permissions`; > CREATE TABLE `permissions` ( > `module_bit` int(11) NOT NULL DEFAULT 0, >- `code` varchar(64) DEFAULT NULL, >+ `code` varchar(64) NOT NULL DEFAULT '', > `description` varchar(255) DEFAULT NULL, > PRIMARY KEY (`module_bit`, `code`), > CONSTRAINT `permissions_ibfk_1` FOREIGN KEY (`module_bit`) REFERENCES `userflags` (`bit`) >-- >2.7.4
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 17320
:
55706
| 56819