Permalink
Browse files

*some* fixes for migrations for fresh vagrant boxes

  • Loading branch information...
groovecoder committed Apr 25, 2012
1 parent d7f420a commit 76c38feb8ac8fe3cb2a3b339db2e9286d7c900d4
@@ -9,7 +9,7 @@ class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Revision.show_toc'
- db.add_column('wiki_revision', 'show_toc', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
+ db.add_column('wiki_revision', 'show_toc', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=True)
def backwards(self, orm):
@@ -5,14 +5,16 @@
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS
wiki_document,
+ wiki_documenttag,
wiki_editortoolbar,
wiki_firefoxversion,
wiki_helpfulvote,
wiki_operatingsystem,
wiki_relateddocument,
wiki_reviewtag,
wiki_reviewtaggedrevision,
- wiki_revision;
+ wiki_revision,
+ wiki_taggeddocument;
DELETE FROM south_migrationhistory
WHERE app_name="wiki";
@@ -1,4 +1,6 @@
BEGIN;
+DROP TABLE IF EXISTS `soapbox_message`;
+
CREATE TABLE `soapbox_message` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`message` longtext NOT NULL,
@@ -15,5 +15,8 @@ DELETE FROM actioncounters_actioncounterunique
WHERE unique_hash IN
(SELECT unique_hash FROM dup_actioncounter_hashes);
+DROP INDEX actioncounters_actioncounterunique_unique
+ ON actioncounters_actioncounterunique;
+
ALTER TABLE actioncounters_actioncounterunique
ADD UNIQUE actioncounters_actioncounterunique_unique (unique_hash);
@@ -5,6 +5,7 @@ SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `devmo_event` CASCADE;
DROP TABLE IF EXISTS `devmo_calendar` CASCADE;
DROP TABLE IF EXISTS `wiki_document` CASCADE;
+DROP TABLE IF EXISTS `wiki_documenttag` CASCADE;
DROP TABLE IF EXISTS `wiki_revision` CASCADE;
DROP TABLE IF EXISTS `wiki_firefoxversion` CASCADE;
DROP TABLE IF EXISTS `wiki_operatingsystem` CASCADE;
@@ -13,6 +14,7 @@ DROP TABLE IF EXISTS `wiki_relateddocument` CASCADE;
DROP TABLE IF EXISTS `wiki_editortoolbar` CASCADE;
DROP TABLE IF EXISTS `wiki_reviewtaggedrevision` CASCADE;
DROP TABLE IF EXISTS `wiki_reviewtag` CASCADE;
+DROP TABLE IF EXISTS `wiki_taggeddocument` CASCADE;
-- Change site to developer-dev
UPDATE django_site set domain = 'developer-dev.mozilla.org', name = 'developer-dev.mozilla.org';
@@ -34,7 +34,7 @@
apache: stage => basics;
mysql: stage => basics;
memcache: stage => basics;
- sphinx: stage => basics;
+# sphinx: stage => basics;
python: stage => langs;
php: stage => langs;

0 comments on commit 76c38fe

Please sign in to comment.