Removed unneeded scripts.

This commit is contained in:
Michal Čihař
2004-05-05 13:16:44 +00:00
parent 75fc39215c
commit 7488d743d9
3 changed files with 1 additions and 91 deletions

View File

@@ -18,6 +18,7 @@ $Source$
* config.inc.php, tbl_change.php, tbl_replace.php,
libraries/common.lib.php, libraries/config_import.lib.php: Support for
insert multiple rows at once (RFE #749733).
* scripts/extchg.sh, scripts/inno2pma.sh: Removed unneeded scripts.
2004-05-04 Michal Cihar <michal@cihar.com>
* libraries/sqlparser.data.php: Add ENGINE to reserved words (used instead

View File

@@ -1,35 +0,0 @@
#!/bin/sh
#
# $Id$
#
# original php3->phtml converter by Pavel Piankov <pashah@spb.sitek.net>
# modified by Tobias Ratschiller to allow any file extension
# part of the phpMyAdmin distribution <http://phpmyadmin.net/>
#
# 2001-07-07, lem9@users.sourceforge.net:
# - supports sub-directories
# - no more bak directory
if [ $# != 2 ]
then
echo "Usage: extchg.sh <extension to change from> <extension to change to>"
echo ""
echo "Example: extchg.sh php3 php"
exit
fi
for i in `find . -name "*.$1"`
do
echo $i
sed -e 's/\.'$1'/\.'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'`
rm $i
done;
for i in `find . -name "generator.sh"`
do
echo $i
sed -e 's/\.'$1'/\.'$2'/g' $i > $i.new
rm $i
mv $i.new $i
done;

View File

@@ -1,56 +0,0 @@
#!/bin/sh
#
# inno2pma
#
# insert InnoDB foreign keys into phpmyadmin relation table
# by Ernie Hershey 3/15/2003
#
# THIS IS AN EXPERIMENTAL SCRIPT - PLEASE DO NOT USE THIS
# IF YOU DON'T UNDERSTAND WHAT IT IS DOING!
#
# This was posted on the Open Discussion forum by
# ehershey. The idea is interesting, however we should
# implement it in PHP.
#
# In future versions of phpMyAdmin the use of a proprietary
# storage of relational tables will be discarded in favor of
# the InnoDB relations (or in addition to). Support of InnoDB
# relations is on our ToDo-List.
#
# requires :
# mysql client tools
# standard unix shell tools
# special PHPMyAdmin relation table setup
#
#
# config
database="triohost2"
#table="domains"
relationdb="phpmyadmin"
relationtable="PMA_relation"
# end config
mysqldump --no-data $database $table | egrep "^CREATE|^ FOREIGN" | while read line
do
line=`echo "$line"|sed 's/^ *//g`
first_token=`echo "$line" | cut -f1 -d" "`
case $first_token in
CREATE)
table_name=`echo "$line"|sed 's/CREATE TABLE \(.*\) (/\1/'`
echo "DELETE FROM $relationtable WHERE master_db='$database' AND master_table='$table_name'" | mysql $relationdb
;;
FOREIGN)
localcolumn=`echo "$line" | cut -f2 -d\\\``
foreigntablefull=`echo "$line" | cut -f4 -d\\\``
foreigndb=`echo $foreigntablefull | cut -f1 -d.`
foreigntable=`echo $foreigntablefull | cut -f2 -d.`
foreigncolumn=`echo "$line" | cut -f6 -d\\\``
echo processing foreign key on column $database.$table_name.$localcolumn to $foreigndb.$foreigntable.$foreigncolumn >&2
echo "INSERT INTO $relationtable VALUES ('$database','$table_name','$localcolumn','$foreigndb','$foreigntable','$foreigncolumn');" | mysql $relationdb
;;
esac
done