[Bps-public-commit] rt-extension-configindatabase branch, master, updated. 948ce432643e2d339807f01ea0b0d10bd6f9c94f

? sunnavy sunnavy at bestpractical.com
Tue Apr 17 15:36:25 EDT 2018


The branch, master has been updated
       via  948ce432643e2d339807f01ea0b0d10bd6f9c94f (commit)
       via  37b4c10f603994c0bf27e951bfd6dce2b28d851a (commit)
      from  e06259c291aceb08ceaa4d16de293bae8d8b0f06 (commit)

Summary of changes:
 etc/schema.mysql                     | 2 +-
 lib/RT/Extension/ConfigInDatabase.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 37b4c10f603994c0bf27e951bfd6dce2b28d851a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Apr 18 03:31:54 2018 +0800

    Fix index of "Disabled" for mysql

diff --git a/etc/schema.mysql b/etc/schema.mysql
index fea1fd8..a64ea02 100644
--- a/etc/schema.mysql
+++ b/etc/schema.mysql
@@ -12,5 +12,5 @@ CREATE TABLE RTxDatabaseSettings (
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 CREATE UNIQUE INDEX RTxDatabaseSettings1 ON RTxDatabaseSettings (Name);
-CREATE UNIQUE INDEX RTxDatabaseSettings2 ON RTxDatabaseSettings (Disabled);
+CREATE INDEX RTxDatabaseSettings2 ON RTxDatabaseSettings (Disabled);
 

commit 948ce432643e2d339807f01ea0b0d10bd6f9c94f
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Apr 18 03:35:39 2018 +0800

    Switch from Storable::dclone to Clone::clone to handle code/regex

diff --git a/lib/RT/Extension/ConfigInDatabase.pm b/lib/RT/Extension/ConfigInDatabase.pm
index 91f8c52..3b9bba3 100644
--- a/lib/RT/Extension/ConfigInDatabase.pm
+++ b/lib/RT/Extension/ConfigInDatabase.pm
@@ -157,7 +157,7 @@ sub LoadConfigFromDatabase {
         if (!exists $original_setting_from_files{$name}) {
             $original_setting_from_files{$name} = [
                 scalar(RT->Config->Get($name)),
-                Storable::dclone(scalar(RT->Config->Meta($name))),
+                Clone::clone(scalar(RT->Config->Meta($name))),
             ];
         }
 

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list