[Rt-commit] [rtir] 01/01: Fix table names in the snapshot

Kevin Falcone falcone at bestpractical.com
Fri Jun 21 17:33:20 EDT 2013


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 2.9-trunk
in repository rtir.

commit ea3d0877c9de05b781cec1db2091b10e97680caa
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Jun 21 17:31:01 2013 -0400

    Fix table names in the snapshot
    
    This snapshot was presumably taken on a Mac.  For reasons unknown, MySQL
    on OS-X loves to randomly lowercase table names.  Because it's run in
    case-insensitive mode on OS-X nobody notices.
    
    When you load this snapshot in over the top of an existing RT schema
    during a test run on a linux smoke server however, you get amazing
    failures.
---
 .../snapshot/mysql/rtir-2.6.after-rt-upgrade.sql   | 112 ++++++++++-----------
 1 file changed, 56 insertions(+), 56 deletions(-)

diff --git a/t/data/snapshot/mysql/rtir-2.6.after-rt-upgrade.sql b/t/data/snapshot/mysql/rtir-2.6.after-rt-upgrade.sql
index b96a9e5..1c31c95 100644
--- a/t/data/snapshot/mysql/rtir-2.6.after-rt-upgrade.sql
+++ b/t/data/snapshot/mysql/rtir-2.6.after-rt-upgrade.sql
@@ -758,13 +758,13 @@ INSERT INTO `Users` VALUES (1,'RT_System','*NO-PASSWORD*','Do not delete or modi
 UNLOCK TABLES;
 
 --
--- Table structure for table `attachments`
+-- Table structure for table `Attachments`
 --
 
-DROP TABLE IF EXISTS `attachments`;
+DROP TABLE IF EXISTS `Attachments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attachments` (
+CREATE TABLE `Attachments` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `TransactionId` int(11) NOT NULL,
   `Parent` int(11) NOT NULL DEFAULT '0',
@@ -784,23 +784,23 @@ CREATE TABLE `attachments` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Dumping data for table `attachments`
+-- Dumping data for table `Attachments`
 --
 
-LOCK TABLES `attachments` WRITE;
-/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
-INSERT INTO `attachments` VALUES (1,48,0,'','foo 0.879632438606684',NULL,'text/plain','none','bla','Subject: foo 0.879632438606684\nMIME-Version: 1.0\nX-Mailer: MIME-tools 5.428 (Entity 5.428)\nX-RT-Original-Encoding: utf-8\nX-RT-Encrypt: 0\nX-RT-Sign: 0\nContent-Type: text/plain; charset=\"UTF-8\"\nContent-Disposition: inline\nContent-Transfer-Encoding: binary\nContent-Length: 3\n',41,'2011-08-03 19:34:32'),(2,61,0,'','first incident',NULL,'text/plain','none','bla\n\n','Subject: first i [...]
-/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
+LOCK TABLES `Attachments` WRITE;
+/*!40000 ALTER TABLE `Attachments` DISABLE KEYS */;
+INSERT INTO `Attachments` VALUES (1,48,0,'','foo 0.879632438606684',NULL,'text/plain','none','bla','Subject: foo 0.879632438606684\nMIME-Version: 1.0\nX-Mailer: MIME-tools 5.428 (Entity 5.428)\nX-RT-Original-Encoding: utf-8\nX-RT-Encrypt: 0\nX-RT-Sign: 0\nContent-Type: text/plain; charset=\"UTF-8\"\nContent-Disposition: inline\nContent-Transfer-Encoding: binary\nContent-Length: 3\n',41,'2011-08-03 19:34:32'),(2,61,0,'','first incident',NULL,'text/plain','none','bla\n\n','Subject: first i [...]
+/*!40000 ALTER TABLE `Attachments` ENABLE KEYS */;
 UNLOCK TABLES;
 
 --
--- Table structure for table `attributes`
+-- Table structure for table `Attributes`
 --
 
-DROP TABLE IF EXISTS `attributes`;
+DROP TABLE IF EXISTS `Attributes`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attributes` (
+CREATE TABLE `Attributes` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `Name` varchar(255) DEFAULT NULL,
   `Description` varchar(255) DEFAULT NULL,
@@ -819,23 +819,23 @@ CREATE TABLE `attributes` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Dumping data for table `attributes`
+-- Dumping data for table `Attributes`
 --
 
-LOCK TABLES `attributes` WRITE;
-/*!40000 ALTER TABLE `attributes` DISABLE KEYS */;
-INSERT INTO `attributes` VALUES (1,'Search - My Tickets','[_1] highest priority tickets I own','BQcDAAAABAoEREVTQwAAAAVPcmRlcgpDIE93bmVyID0gJ19fQ3VycmVudFVzZXJfXycgQU5EICgg\nU3RhdHVzID0gJ25ldycgT1IgU3RhdHVzID0gJ29wZW4nKQAAAAVRdWVyeQoIUHJpb3JpdHkAAAAH\nT3JkZXJCeQrAJzxhIGhyZWY9Il9fV2ViUGF0aF9fL1RpY2tldC9EaXNwbGF5Lmh0bWw/aWQ9X19p\nZF9fIj5fX2lkX188L2E+L1RJVExFOiMnLCc8YSBocmVmPSJfX1dlYlBhdGhfXy9UaWNrZXQvRGlz\ncGxheS5odG1sP2lkPV9faWRfXyI+X19TdWJqZWN0X188L2E+L1RJVExFOlN1YmplY3QnLFByaW9y\naXR5LC [...]
-/*!40000 ALTER TABLE `attributes` ENABLE KEYS */;
+LOCK TABLES `Attributes` WRITE;
+/*!40000 ALTER TABLE `Attributes` DISABLE KEYS */;
+INSERT INTO `Attributes` VALUES (1,'Search - My Tickets','[_1] highest priority tickets I own','BQcDAAAABAoEREVTQwAAAAVPcmRlcgpDIE93bmVyID0gJ19fQ3VycmVudFVzZXJfXycgQU5EICgg\nU3RhdHVzID0gJ25ldycgT1IgU3RhdHVzID0gJ29wZW4nKQAAAAVRdWVyeQoIUHJpb3JpdHkAAAAH\nT3JkZXJCeQrAJzxhIGhyZWY9Il9fV2ViUGF0aF9fL1RpY2tldC9EaXNwbGF5Lmh0bWw/aWQ9X19p\nZF9fIj5fX2lkX188L2E+L1RJVExFOiMnLCc8YSBocmVmPSJfX1dlYlBhdGhfXy9UaWNrZXQvRGlz\ncGxheS5odG1sP2lkPV9faWRfXyI+X19TdWJqZWN0X188L2E+L1RJVExFOlN1YmplY3QnLFByaW9y\naXR5LC [...]
+/*!40000 ALTER TABLE `Attributes` ENABLE KEYS */;
 UNLOCK TABLES;
 
 --
--- Table structure for table `cachedgroupmembers`
+-- Table structure for table `CachedGroupMembers`
 --
 
-DROP TABLE IF EXISTS `cachedgroupmembers`;
+DROP TABLE IF EXISTS `CachedGroupMembers`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `cachedgroupmembers` (
+CREATE TABLE `CachedGroupMembers` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `GroupId` int(11) DEFAULT NULL,
   `MemberId` int(11) DEFAULT NULL,
@@ -849,23 +849,23 @@ CREATE TABLE `cachedgroupmembers` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Dumping data for table `cachedgroupmembers`
+-- Dumping data for table `CachedGroupMembers`
 --
 
-LOCK TABLES `cachedgroupmembers` WRITE;
-/*!40000 ALTER TABLE `cachedgroupmembers` DISABLE KEYS */;
-INSERT INTO `cachedgroupmembers` VALUES (1,2,2,1,2,0),(2,2,1,2,2,0),(3,3,3,3,3,0),(4,4,4,4,4,0),(5,5,5,5,5,0),(6,7,7,6,7,0),(7,7,6,7,7,0),(8,3,6,8,3,0),(9,5,6,9,5,0),(10,8,8,10,8,0),(11,9,9,11,9,0),(12,10,10,12,10,0),(13,11,11,13,11,0),(14,13,13,14,13,0),(15,13,12,15,13,0),(16,3,12,16,3,0),(17,4,12,17,4,0),(18,14,14,18,14,0),(19,15,15,19,15,0),(20,16,16,20,16,0),(21,17,17,21,17,0),(22,18,18,22,18,0),(23,19,19,23,19,0),(24,20,20,24,20,0),(25,21,21,25,21,0),(26,22,22,26,22,0),(27,23,23,27, [...]
-/*!40000 ALTER TABLE `cachedgroupmembers` ENABLE KEYS */;
+LOCK TABLES `CachedGroupMembers` WRITE;
+/*!40000 ALTER TABLE `CachedGroupMembers` DISABLE KEYS */;
+INSERT INTO `CachedGroupMembers` VALUES (1,2,2,1,2,0),(2,2,1,2,2,0),(3,3,3,3,3,0),(4,4,4,4,4,0),(5,5,5,5,5,0),(6,7,7,6,7,0),(7,7,6,7,7,0),(8,3,6,8,3,0),(9,5,6,9,5,0),(10,8,8,10,8,0),(11,9,9,11,9,0),(12,10,10,12,10,0),(13,11,11,13,11,0),(14,13,13,14,13,0),(15,13,12,15,13,0),(16,3,12,16,3,0),(17,4,12,17,4,0),(18,14,14,18,14,0),(19,15,15,19,15,0),(20,16,16,20,16,0),(21,17,17,21,17,0),(22,18,18,22,18,0),(23,19,19,23,19,0),(24,20,20,24,20,0),(25,21,21,25,21,0),(26,22,22,26,22,0),(27,23,23,27, [...]
+/*!40000 ALTER TABLE `CachedGroupMembers` ENABLE KEYS */;
 UNLOCK TABLES;
 
 --
--- Table structure for table `links`
+-- Table structure for table `Links`
 --
 
-DROP TABLE IF EXISTS `links`;
+DROP TABLE IF EXISTS `Links`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `links` (
+CREATE TABLE `Links` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `Base` varchar(240) DEFAULT NULL,
   `Target` varchar(240) DEFAULT NULL,
@@ -884,23 +884,23 @@ CREATE TABLE `links` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Dumping data for table `links`
+-- Dumping data for table `Links`
 --
 
-LOCK TABLES `links` WRITE;
-/*!40000 ALTER TABLE `links` DISABLE KEYS */;
-INSERT INTO `links` VALUES (1,'fsck.com-rt://example.com/ticket/1','fsck.com-rt://example.com/ticket/2','MemberOf',2,1,41,'2011-08-03 19:34:37',41,'2011-08-03 19:34:37'),(2,'fsck.com-rt://example.com/ticket/1','fsck.com-rt://example.com/ticket/3','MemberOf',3,1,41,'2011-08-03 19:34:46',41,'2011-08-03 19:34:46');
-/*!40000 ALTER TABLE `links` ENABLE KEYS */;
+LOCK TABLES `Links` WRITE;
+/*!40000 ALTER TABLE `Links` DISABLE KEYS */;
+INSERT INTO `Links` VALUES (1,'fsck.com-rt://example.com/ticket/1','fsck.com-rt://example.com/ticket/2','MemberOf',2,1,41,'2011-08-03 19:34:37',41,'2011-08-03 19:34:37'),(2,'fsck.com-rt://example.com/ticket/1','fsck.com-rt://example.com/ticket/3','MemberOf',3,1,41,'2011-08-03 19:34:46',41,'2011-08-03 19:34:46');
+/*!40000 ALTER TABLE `Links` ENABLE KEYS */;
 UNLOCK TABLES;
 
 --
--- Table structure for table `objectcustomfieldvalues`
+-- Table structure for table `ObjectCustomFieldValues`
 --
 
-DROP TABLE IF EXISTS `objectcustomfieldvalues`;
+DROP TABLE IF EXISTS `ObjectCustomFieldValues`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `objectcustomfieldvalues` (
+CREATE TABLE `ObjectCustomFieldValues` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `CustomField` int(11) NOT NULL,
   `ObjectType` varchar(255) CHARACTER SET ascii NOT NULL,
@@ -922,23 +922,23 @@ CREATE TABLE `objectcustomfieldvalues` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Dumping data for table `objectcustomfieldvalues`
+-- Dumping data for table `ObjectCustomFieldValues`
 --
 
-LOCK TABLES `objectcustomfieldvalues` WRITE;
-/*!40000 ALTER TABLE `objectcustomfieldvalues` DISABLE KEYS */;
-INSERT INTO `objectcustomfieldvalues` VALUES (1,8,'RT::Ticket',1,0,'Full service: out of hours',NULL,NULL,'',41,'2011-08-03 19:34:32',41,'2011-08-03 19:34:32',0),(2,2,'RT::Ticket',1,0,'EDUNET',NULL,NULL,'',41,'2011-08-03 19:34:32',41,'2011-08-03 19:34:32',0),(3,3,'RT::Ticket',1,0,'new',NULL,NULL,'',1,'2011-08-03 19:34:34',1,'2011-08-03 19:34:38',1),(4,2,'RT::Ticket',2,0,'EDUNET',NULL,NULL,'',41,'2011-08-03 19:34:37',41,'2011-08-03 19:34:37',0),(5,9,'RT::Ticket',2,0,'IncidentCoord',NULL,N [...]
-/*!40000 ALTER TABLE `objectcustomfieldvalues` ENABLE KEYS */;
+LOCK TABLES `ObjectCustomFieldValues` WRITE;
+/*!40000 ALTER TABLE `ObjectCustomFieldValues` DISABLE KEYS */;
+INSERT INTO `ObjectCustomFieldValues` VALUES (1,8,'RT::Ticket',1,0,'Full service: out of hours',NULL,NULL,'',41,'2011-08-03 19:34:32',41,'2011-08-03 19:34:32',0),(2,2,'RT::Ticket',1,0,'EDUNET',NULL,NULL,'',41,'2011-08-03 19:34:32',41,'2011-08-03 19:34:32',0),(3,3,'RT::Ticket',1,0,'new',NULL,NULL,'',1,'2011-08-03 19:34:34',1,'2011-08-03 19:34:38',1),(4,2,'RT::Ticket',2,0,'EDUNET',NULL,NULL,'',41,'2011-08-03 19:34:37',41,'2011-08-03 19:34:37',0),(5,9,'RT::Ticket',2,0,'IncidentCoord',NULL,N [...]
+/*!40000 ALTER TABLE `ObjectCustomFieldValues` ENABLE KEYS */;
 UNLOCK TABLES;
 
 --
--- Table structure for table `principals`
+-- Table structure for table `Principals`
 --
 
-DROP TABLE IF EXISTS `principals`;
+DROP TABLE IF EXISTS `Principals`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `principals` (
+CREATE TABLE `Principals` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `PrincipalType` varchar(16) NOT NULL,
   `ObjectId` int(11) DEFAULT NULL,
@@ -949,13 +949,13 @@ CREATE TABLE `principals` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Dumping data for table `principals`
+-- Dumping data for table `Principals`
 --
 
-LOCK TABLES `principals` WRITE;
-/*!40000 ALTER TABLE `principals` DISABLE KEYS */;
-INSERT INTO `principals` VALUES (1,'User',1,0),(2,'Group',2,0),(3,'Group',3,0),(4,'Group',4,0),(5,'Group',5,0),(6,'User',6,0),(7,'Group',7,0),(8,'Group',8,0),(9,'Group',9,0),(10,'Group',10,0),(11,'Group',11,0),(12,'User',12,0),(13,'Group',13,0),(14,'Group',14,0),(15,'Group',15,0),(16,'Group',16,0),(17,'Group',17,0),(18,'Group',18,0),(19,'Group',19,0),(20,'Group',20,0),(21,'Group',21,0),(22,'Group',22,0),(23,'Group',23,0),(24,'Group',24,0),(25,'Group',25,0),(26,'Group',26,0),(27,'Group',2 [...]
-/*!40000 ALTER TABLE `principals` ENABLE KEYS */;
+LOCK TABLES `Principals` WRITE;
+/*!40000 ALTER TABLE `Principals` DISABLE KEYS */;
+INSERT INTO `Principals` VALUES (1,'User',1,0),(2,'Group',2,0),(3,'Group',3,0),(4,'Group',4,0),(5,'Group',5,0),(6,'User',6,0),(7,'Group',7,0),(8,'Group',8,0),(9,'Group',9,0),(10,'Group',10,0),(11,'Group',11,0),(12,'User',12,0),(13,'Group',13,0),(14,'Group',14,0),(15,'Group',15,0),(16,'Group',16,0),(17,'Group',17,0),(18,'Group',18,0),(19,'Group',19,0),(20,'Group',20,0),(21,'Group',21,0),(22,'Group',22,0),(23,'Group',23,0),(24,'Group',24,0),(25,'Group',25,0),(26,'Group',26,0),(27,'Group',2 [...]
+/*!40000 ALTER TABLE `Principals` ENABLE KEYS */;
 UNLOCK TABLES;
 
 --
@@ -983,13 +983,13 @@ LOCK TABLES `sessions` WRITE;
 UNLOCK TABLES;
 
 --
--- Table structure for table `transactions`
+-- Table structure for table `Transactions`
 --
 
-DROP TABLE IF EXISTS `transactions`;
+DROP TABLE IF EXISTS `Transactions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `transactions` (
+CREATE TABLE `Transactions` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `ObjectType` varchar(64) CHARACTER SET ascii NOT NULL,
   `ObjectId` int(11) NOT NULL DEFAULT '0',
@@ -1010,13 +1010,13 @@ CREATE TABLE `transactions` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Dumping data for table `transactions`
+-- Dumping data for table `Transactions`
 --
 
-LOCK TABLES `transactions` WRITE;
-/*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
-INSERT INTO `transactions` VALUES (1,'RT::Group',3,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(2,'RT::Group',4,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(3,'RT::Group',5,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(4,'RT::User',6,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(5,'RT::Group',8,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(6,'RT::Group',9,0, [...]
-/*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
+LOCK TABLES `Transactions` WRITE;
+/*!40000 ALTER TABLE `Transactions` DISABLE KEYS */;
+INSERT INTO `Transactions` VALUES (1,'RT::Group',3,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(2,'RT::Group',4,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(3,'RT::Group',5,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(4,'RT::User',6,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(5,'RT::Group',8,0,'Create',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2011-08-03 19:34:17'),(6,'RT::Group',9,0, [...]
+/*!40000 ALTER TABLE `Transactions` ENABLE KEYS */;
 UNLOCK TABLES;
 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Rt-commit mailing list