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 2528-2533 CREATE TABLE `currency` ( Link Here
2528
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2528
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2529
/*!40101 SET character_set_client = @saved_cs_client */;
2529
/*!40101 SET character_set_client = @saved_cs_client */;
2530
2530
2531
--
2532
-- Table structure for table `deletedauth_header`
2533
--
2534
2535
DROP TABLE IF EXISTS `deletedauth_header`;
2536
/*!40101 SET @saved_cs_client     = @@character_set_client */;
2537
/*!40101 SET character_set_client = utf8 */;
2538
CREATE TABLE `deletedauth_header` (
2539
  `authid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
2540
  `authtypecode` varchar(10) NOT NULL DEFAULT '',
2541
  `datecreated` date DEFAULT NULL,
2542
  `modification_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
2543
  `origincode` varchar(20) DEFAULT NULL,
2544
  `authtrees` longtext DEFAULT NULL,
2545
  `marc` blob DEFAULT NULL,
2546
  `linkid` bigint(20) DEFAULT NULL,
2547
  `marcxml` longtext NOT NULL,
2548
  PRIMARY KEY (`authid`),
2549
  KEY `origincode` (`origincode`)
2550
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
2551
/*!40101 SET character_set_client = @saved_cs_client */;
2552
2531
--
2553
--
2532
-- Table structure for table `deletedbiblio`
2554
-- Table structure for table `deletedbiblio`
2533
--
2555
--
2534
- 

Return to bug 30888