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 2551-2556 CREATE TABLE `currency` ( Link Here
2551
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2551
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2552
/*!40101 SET character_set_client = @saved_cs_client */;
2552
/*!40101 SET character_set_client = @saved_cs_client */;
2553
2553
2554
--
2555
-- Table structure for table `deletedauth_header`
2556
--
2557
2558
DROP TABLE IF EXISTS `deletedauth_header`;
2559
/*!40101 SET @saved_cs_client     = @@character_set_client */;
2560
/*!40101 SET character_set_client = utf8 */;
2561
CREATE TABLE `deletedauth_header` (
2562
  `authid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
2563
  `authtypecode` varchar(10) NOT NULL DEFAULT '',
2564
  `datecreated` date DEFAULT NULL,
2565
  `modification_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
2566
  `origincode` varchar(20) DEFAULT NULL,
2567
  `authtrees` longtext DEFAULT NULL,
2568
  `marc` blob DEFAULT NULL,
2569
  `linkid` bigint(20) DEFAULT NULL,
2570
  `marcxml` longtext NOT NULL,
2571
  PRIMARY KEY (`authid`),
2572
  KEY `origincode` (`origincode`)
2573
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2574
/*!40101 SET character_set_client = @saved_cs_client */;
2575
2554
--
2576
--
2555
-- Table structure for table `deletedbiblio`
2577
-- Table structure for table `deletedbiblio`
2556
--
2578
--
2557
- 

Return to bug 30888