Guest User

Untitled

a guest
Oct 13th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 6.03 KB | None | 0 0
  1. apokalyptica79@ozymandias ~/kitsune $ ./vendor/src/schematic/schematic migrations/
  2. Running SQL migration 148:
  3. INSERT INTO kpi_metrickind (`code`) VALUES ('general aoa:contributors');
  4. INSERT INTO kpi_metrickind (`code`) VALUES ('general supportforum:contributors');
  5. INSERT INTO kpi_metrickind (`code`) VALUES ('general kb:en-US:contributors');
  6. INSERT INTO kpi_metrickind (`code`) VALUES ('general kb:l10n:contributors');
  7.  
  8. That took 0.15 seconds
  9. ##################################################
  10.  
  11. Running SQL migration 149:
  12. DELETE FROM waffle_flag where name='elasticsearch';
  13.  
  14. That took 0.08 seconds
  15. ##################################################
  16.  
  17. Running SQL migration 150:
  18. DELETE FROM kpi_metrickind
  19.     WHERE code='search clickthroughs:sphinx:clicks' OR code='search clickthroughs:sphinx:searches';
  20.  
  21. That took 0.06 seconds
  22. ##################################################
  23.  
  24. Running SQL migration 151:
  25. INSERT IGNORE INTO `django_content_type` (`name`, `app_label`, `model`) VALUES ('redirect','inproduct','redirect') ON DUPLICATE KEY UPDATE `name`='redirect';
  26.  
  27. SELECT (@id:=`id`) FROM `django_content_type` WHERE `name` = 'redirect';
  28.  
  29. INSERT INTO auth_permission (`name`, `content_type_id`, `codename`) VALUES
  30.     ('Can add inproduct redirects', @id, 'add_redirect'),
  31.     ('Can change inproduct redirects', @id, 'change_redirect'),
  32.     ('Can delete inproduct redirects', @id, 'delete_redirect');
  33.  
  34. That took 0.05 seconds
  35. ##################################################
  36.  
  37. Running SQL migration 152:
  38. CREATE TABLE `products_product` (
  39.     `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  40.     `title` varchar(255) NOT NULL,
  41.     `description` longtext NOT NULL,
  42.     `display_order` integer NOT NULL,
  43.     `visible` bool NOT NULL,
  44.     `slug` varchar(50) NOT NULL
  45. ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;
  46.  
  47. CREATE INDEX `products_product_7be581d8` ON `products_product` (`title`);
  48. CREATE INDEX `products_product_56ae2a2a` ON `products_product` (`slug`);
  49.  
  50. INSERT INTO `django_content_type` (`name`, `app_label`, `model`) VALUES ('product','products','product');
  51.  
  52. SELECT (@id:=`id`) FROM `django_content_type` WHERE `name` = 'product';
  53.  
  54. INSERT INTO `auth_permission` (`name`, `content_type_id`, `codename`) VALUES ('Can add product',@id,'add_product'),('Can change product',@id,'change_product'),('Can delete product',@id,'delete_product');
  55.  
  56.  
  57.  
  58. That took 0.49 seconds
  59. ##################################################
  60.  
  61. Running SQL migration 153:
  62. CREATE TABLE `wiki_document_products` (
  63.     `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  64.     `document_id` integer NOT NULL,
  65.     `product_id` integer NOT NULL,
  66.     UNIQUE (`document_id`, `product_id`)
  67. ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;
  68. ;
  69. ALTER TABLE `wiki_document_products` ADD CONSTRAINT `product_id_refs_id_6da56fea` FOREIGN KEY (`product_id`) REFERENCES `products_product` (`id`);
  70.  
  71. ALTER TABLE `wiki_document_products` ADD CONSTRAINT `document_id_refs_id_1680d707` FOREIGN KEY (`document_id`) REFERENCES `wiki_document` (`id`);
  72.  
  73. That took 0.58 seconds
  74. ##################################################
  75.  
  76. Running SQL migration 154:
  77. CREATE TABLE `topics_topic` (
  78.     `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  79.     `title` varchar(255) NOT NULL,
  80.     `slug` varchar(50) NOT NULL,
  81.     `description` longtext NOT NULL,
  82.     `image` varchar(250),
  83.     `parent_id` integer,
  84.     `display_order` integer NOT NULL,
  85.     `visible` bool NOT NULL
  86. ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;
  87.  
  88. ALTER TABLE `topics_topic` ADD CONSTRAINT `parent_id_refs_id_39bb1195` FOREIGN KEY (`parent_id`) REFERENCES `topics_topic` (`id`);
  89. CREATE INDEX `topics_topic_841a7e28` ON `topics_topic` (`title`);
  90. CREATE INDEX `topics_topic_a951d5d6` ON `topics_topic` (`slug`);
  91. CREATE INDEX `topics_topic_63f17a16` ON `topics_topic` (`parent_id`);
  92.  
  93. INSERT INTO `django_content_type` (`name`, `app_label`, `model`) VALUES ('topic','topics','topic');
  94.  
  95. SELECT (@id:=`id`) FROM `django_content_type` WHERE `name` = 'topic';
  96.  
  97. INSERT INTO `auth_permission` (`name`, `content_type_id`, `codename`) VALUES ('Can add topic',@id,'add_topic'),('Can change topic',@id,'change_topic'),('Can delete topic',@id,'delete_topic');
  98.  
  99. That took 0.84 seconds
  100. ##################################################
  101.  
  102. Running SQL migration 155:
  103. -- Add's image field to the product table like topics.
  104. ALTER TABLE `products_product` ADD `image` varchar(250);
  105.  
  106. That took 0.22 seconds
  107. ##################################################
  108.  
  109. Running SQL migration 156:
  110. -- Add initial products for SUMO
  111. INSERT INTO products_product (`title`, `description`, `display_order`, `visible`, `slug`) VALUES
  112. ('Firefox', 'Web browser for Windows, Mac and Linux', 1, TRUE, 'firefox'),
  113. ('Firefox for mobile', 'Web browser for Android smartphones and tablets', 2, TRUE, 'mobile');
  114.  
  115. That took 0.06 seconds
  116. ##################################################
  117.  
  118. Running SQL migration 157:
  119. CREATE TABLE `wiki_document_topics` (
  120.     `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  121.     `document_id` integer NOT NULL,
  122.     `topic_id` integer NOT NULL,
  123.     UNIQUE (`document_id`, `topic_id`)
  124. ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;
  125.  
  126. ALTER TABLE `wiki_document_topics` ADD CONSTRAINT `topic_id_refs_id_f0454a8c` FOREIGN KEY (`topic_id`) REFERENCES `topics_topic` (`id`);
  127.  
  128. ALTER TABLE `wiki_document_topics` ADD CONSTRAINT `document_id_refs_id_1d391341` FOREIGN KEY (`document_id`) REFERENCES `wiki_document` (`id`);
  129.  
  130. That took 0.49 seconds
  131. ##################################################
  132.  
  133. Running SQL migration 158:
  134. -- Delete the esunified waffle flag because we don't need it anymore.
  135. DELETE FROM waffle_flag where `name`='esunified';
  136. That took 0.03 seconds
  137. ##################################################
  138.  
  139. Running .py migation 159:
  140. /usr/bin/python -B manage.py runscript migrations.159-topics-migration
  141. Error: Had trouble running this: /usr/bin/python -B manage.py runscript migrations.159-topics-migration
  142. stdout: Error: No module named jinja2
  143.  
  144. stderr: None
  145. returncode: 1
Add Comment
Please, Sign In to add comment