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

(-)a/installer/data/mysql/atomicupdate/bug_30888.pl (+29 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => 30888,
5
    description => "Add table deletedauth_header",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        if ( !TableExists('deletedauth_header') ) {
11
            $dbh->do(
12
                q|
13
CREATE TABLE `deletedauth_header` (
14
  `authid` bigint(20) unsigned NOT NULL,
15
  `authtypecode` varchar(10) NOT NULL DEFAULT '',
16
  `datecreated` date DEFAULT NULL,
17
  `modification_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
18
  `origincode` varchar(20) DEFAULT NULL,
19
  `authtrees` longtext DEFAULT NULL,
20
  `marc` blob DEFAULT NULL,
21
  `linkid` bigint(20) DEFAULT NULL,
22
  `marcxml` longtext NOT NULL,
23
  PRIMARY KEY (`authid`)
24
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;|
25
            );
26
            say $out "Added new table 'deletedauth_header'";
27
        }
28
    },
29
};
(-)a/installer/data/mysql/kohastructure.sql (-1 / +22 lines)
Lines 2541-2546 CREATE TABLE `currency` ( Link Here
2541
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2541
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2542
/*!40101 SET character_set_client = @saved_cs_client */;
2542
/*!40101 SET character_set_client = @saved_cs_client */;
2543
2543
2544
--
2545
-- Table structure for table `deletedauth_header`
2546
--
2547
2548
DROP TABLE IF EXISTS `deletedauth_header`;
2549
/*!40101 SET @saved_cs_client     = @@character_set_client */;
2550
/*!40101 SET character_set_client = utf8 */;
2551
CREATE TABLE `deletedauth_header` (
2552
  `authid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
2553
  `authtypecode` varchar(10) NOT NULL DEFAULT '',
2554
  `datecreated` date DEFAULT NULL,
2555
  `modification_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
2556
  `origincode` varchar(20) DEFAULT NULL,
2557
  `authtrees` longtext DEFAULT NULL,
2558
  `marc` blob DEFAULT NULL,
2559
  `linkid` bigint(20) DEFAULT NULL,
2560
  `marcxml` longtext NOT NULL,
2561
  PRIMARY KEY (`authid`),
2562
  KEY `origincode` (`origincode`)
2563
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2564
/*!40101 SET character_set_client = @saved_cs_client */;
2565
2544
--
2566
--
2545
-- Table structure for table `deletedbiblio`
2567
-- Table structure for table `deletedbiblio`
2546
--
2568
--
2547
- 

Return to bug 30888