r56338 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r56337
|
r56338
|
r56339
>
Date:
21:35, 14 September 2009
Author:
brion
Status:
ok
Tags:
Comment:
Apply live hack from wmf-deployment
r53208
: allows passing alt table name
Modified paths:
/trunk/phase3/maintenance/storage/make-blobs
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/maintenance/storage/make-blobs
—
—
@@ -1,11 +1,16 @@
2
2
#!/bin/bash
3
3
4
-if [ X$2 == X ];then
5
- echo 'Usage: make-blobs <server> <db>'
4
+if [ -z $2 ];then
5
+ echo 'Usage: make-blobs <server> <db> [<table name>]'
6
6
exit 1
7
7
fi
8
+if [ -z $3 ]; then
9
+ table=blobs
10
+else
11
+ table=$3
12
+fi
8
13
9
14
echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
10
-mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql
15
+sed "s/blobs\>/$table/" blobs.sql | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2
11
16
12
17
Follow-up revisions
Revision
Commit summary
Author
Date
r56374
Merge post-branch trunk updates replacing old live hacks:...
brion
17:25, 15 September 2009
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r53208
Apply live hacks, local merges, and removal of SVN externals -- all copied fr...
brion
23:50, 13 July 2009
Status & tagging log
21:40, 29 September 2009
Brion VIBBER
(
talk
|
contribs
)
changed the
status
of r56338
[
removed:
new
added:
ok]