Browse Source

tested - now it actually works too

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
654311a4f9
  1. 12
      pyweb/update-v0.5-v0.6.sh

12
pyweb/update-v0.5-v0.6.sh

@ -22,12 +22,8 @@ from django.db import connection
from django.conf import settings from django.conf import settings
crs = connection.cursor(); crs = connection.cursor();
crs.execute( """ALTER TABLE mumble_mumble
ADD obfsc BOOLEAN NOT NULL DEFAULT 0,
ADD player VARCHAR(200) NOT NULL DEFAULT '%s',
ADD channel VARCHAR(200) NOT NULL DEFAULT '%s',
ADD defchan NOT NULL DEFAULT 0;""" % (
r'[-=\\w\\[\\]\\{\\}\\(\\)\\@\\|\\.]+',
r'[ \\-=\\w\\#\\[\\]\\{\\}\\(\\)\\@\\|]+' )
);
crs.execute( "ALTER TABLE mumble_mumble ADD obfsc BOOLEAN NOT NULL DEFAULT 0" );
crs.execute( "ALTER TABLE mumble_mumble ADD player VARCHAR(200) NOT NULL DEFAULT '%s'" % r'[-=\\w\\[\\]\\{\\}\\(\\)\\@\\|\\.]+' );
crs.execute( "ALTER TABLE mumble_mumble ADD channel VARCHAR(200) NOT NULL DEFAULT '%s'" % r'[ \\-=\\w\\#\\[\\]\\{\\}\\(\\)\\@\\|]+' );
crs.execute( "ALTER TABLE mumble_mumble ADD defchan INTEGER NOT NULL DEFAULT 0" );
EOF EOF
Loading…
Cancel
Save