⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
TYPO3 Core
All Projects
TYPO3 Core
Overview
Activity
Roadmap
Issues
Repository
Download (319 Bytes)
Feature #14338
» 0000390-rename_tables.sh
Administrator Admin, 2004-09-28 01:16
#!/bin/sh
mysql_params
=
" -B -u root -pmypassword"
prefix
=
"test_"
db_name
=
"dbal_test"
# Print all tables
tables
=
`
mysql
${
mysql_params
}
-s
-e
"show tables"
${
db_name
}
`
for
i
in
$tables
;
do
# Prepend every table with the prefix
mysql
${
mysql_params
}
-e
"ALTER TABLE
\`
${
i
}
\`
RENAME
\`
${
prefix
}${
i
}
\`
"
${
db_name
}
done
« Previous
1
2
3
Next »
(2-2/3)
Loading...