dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d67e73
)
Apply live hack from wmf-deployment r53208: allows passing alt table name
author
Brion Vibber
<brion@users.mediawiki.org>
Mon, 14 Sep 2009 21:35:14 +0000
(21:35 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Mon, 14 Sep 2009 21:35:14 +0000
(21:35 +0000)
maintenance/storage/make-blobs
patch
|
blob
|
history
diff --git
a/maintenance/storage/make-blobs
b/maintenance/storage/make-blobs
index
9eb7e83
..
36cf9ce
100755
(executable)
--- a/
maintenance/storage/make-blobs
+++ b/
maintenance/storage/make-blobs
@@
-1,11
+1,16
@@
#!/bin/bash
-if [
X$2 == X
];then
- echo 'Usage: make-blobs <server> <db>'
+if [
-z $2
];then
+ echo 'Usage: make-blobs <server> <db>
[<table name>]
'
exit 1
fi
+if [ -z $3 ]; then
+ table=blobs
+else
+ table=$3
+fi
echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
-mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql
+sed "s/blobs\>/$table/" blobs.sql | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2