Advertisement
Guest User

Zend Paginator Count Issue Schema

a guest
Jun 5th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 4.42 KB | None | 0 0
  1. CREATE DATABASE  IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
  2. USE `test`;
  3. -- MySQL dump 10.13  Distrib 5.5.31, for debian-linux-gnu (x86_64)
  4. --
  5. -- Host: localhost    Database: test
  6. -- ------------------------------------------------------
  7. -- Server version   5.5.31-0ubuntu0.13.04.1
  8.  
  9. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  10. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  11. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  12. /*!40101 SET NAMES utf8 */;
  13. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  14. /*!40103 SET TIME_ZONE='+00:00' */;
  15. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  16. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  17. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  18. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  19.  
  20. --
  21. -- Table structure for table `transactions`
  22. --
  23.  
  24. DROP TABLE IF EXISTS `transactions`;
  25. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  26. /*!40101 SET character_set_client = utf8 */;
  27. CREATE TABLE `transactions` (
  28.   `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  29.   `user_id` INT(10) UNSIGNED NOT NULL,
  30.   PRIMARY KEY (`id`)
  31. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
  32. /*!40101 SET character_set_client = @saved_cs_client */;
  33.  
  34. --
  35. -- Dumping data for table `transactions`
  36. --
  37.  
  38. LOCK TABLES `transactions` WRITE;
  39. /*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
  40. INSERT INTO `transactions` VALUES (1,1),(2,1),(3,2),(4,3),(5,4),(6,3),(7,4);
  41. /*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
  42. UNLOCK TABLES;
  43.  
  44. --
  45. -- Table structure for table `products`
  46. --
  47.  
  48. DROP TABLE IF EXISTS `products`;
  49. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  50. /*!40101 SET character_set_client = utf8 */;
  51. CREATE TABLE `products` (
  52.   `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  53.   `name` VARCHAR(45) NOT NULL,
  54.   PRIMARY KEY (`id`)
  55. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  56. /*!40101 SET character_set_client = @saved_cs_client */;
  57.  
  58. --
  59. -- Dumping data for table `products`
  60. --
  61.  
  62. LOCK TABLES `products` WRITE;
  63. /*!40000 ALTER TABLE `products` DISABLE KEYS */;
  64. INSERT INTO `products` VALUES (1,'foo'),(2,'bar'),(3,'Battle Axe'),(4,'T Shirt');
  65. /*!40000 ALTER TABLE `products` ENABLE KEYS */;
  66. UNLOCK TABLES;
  67.  
  68. --
  69. -- Table structure for table `users`
  70. --
  71.  
  72. DROP TABLE IF EXISTS `users`;
  73. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  74. /*!40101 SET character_set_client = utf8 */;
  75. CREATE TABLE `users` (
  76.   `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  77.   `name` VARCHAR(45) NOT NULL,
  78.   PRIMARY KEY (`id`)
  79. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  80. /*!40101 SET character_set_client = @saved_cs_client */;
  81.  
  82. --
  83. -- Dumping data for table `users`
  84. --
  85.  
  86. LOCK TABLES `users` WRITE;
  87. /*!40000 ALTER TABLE `users` DISABLE KEYS */;
  88. INSERT INTO `users` VALUES (1,'Jan'),(2,'Bob'),(3,'Sue'),(4,'Frank');
  89. /*!40000 ALTER TABLE `users` ENABLE KEYS */;
  90. UNLOCK TABLES;
  91.  
  92. --
  93. -- Table structure for table `transaction_line`
  94. --
  95.  
  96. DROP TABLE IF EXISTS `transaction_line`;
  97. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  98. /*!40101 SET character_set_client = utf8 */;
  99. CREATE TABLE `transaction_line` (
  100.   `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  101.   `transaction_id` INT(10) UNSIGNED NOT NULL,
  102.   `product_id` INT(10) UNSIGNED NOT NULL,
  103.   `cost` DECIMAL(2,0) NOT NULL,
  104.   PRIMARY KEY (`id`)
  105. ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
  106. /*!40101 SET character_set_client = @saved_cs_client */;
  107.  
  108. --
  109. -- Dumping data for table `transaction_line`
  110. --
  111.  
  112. LOCK TABLES `transaction_line` WRITE;
  113. /*!40000 ALTER TABLE `transaction_line` DISABLE KEYS */;
  114. INSERT INTO `transaction_line` VALUES (1,1,1,4),(2,1,2,8),(3,2,1,2),(4,2,3,10),(5,3,4,16),(6,3,3,11),(7,4,4,32),(8,5,1,88),(9,5,2,67),(10,6,3,30),(11,6,4,9),(12,7,2,10),(13,7,4,1);
  115. /*!40000 ALTER TABLE `transaction_line` ENABLE KEYS */;
  116. UNLOCK TABLES;
  117. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  118.  
  119. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  120. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  121. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  122. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  123. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  124. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  125. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  126.  
  127. -- Dump completed on 2013-06-05 21:59:02
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement