From 78dae6a11dff13a0b45eb6c6a314c1368a81f4f2 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 2 Oct 2012 15:56:03 -0400 Subject: [PATCH] Add tool to replace the production server's database schema. (imported from commit 2aeab792275e43549f3644875a5c360b0f0582a1) --- tools/do-schema-change | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 tools/do-schema-change diff --git a/tools/do-schema-change b/tools/do-schema-change new file mode 100755 index 0000000000..545dff9e9d --- /dev/null +++ b/tools/do-schema-change @@ -0,0 +1,4 @@ +#!/bin/sh +echo "drop database humbug; create database humbug DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;" | mysql +python manage.py syncdb +python manage.py populate_db --replay-old-zephyrs -n0