Updates
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
checkvariablecnt=$#
|
||||
|
||||
if [ $checkvariablecnt == 4 ]; then
|
||||
echo "Migrate to an existing [ $3 ]schema. "
|
||||
mysql -u$1 -p$2 --database=$3 < $4
|
||||
else
|
||||
echo "Migrate file $3 "
|
||||
mysql -u$1 -p$2 < $3
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user