93 lines
1.3 KiB
Bash
Executable File
93 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
DUMPED_FILE="dump/dumpedFixtures.sql"
|
|
INI_FILE="config.production.ini"
|
|
|
|
dump_tables() {
|
|
SCHEMA=$1
|
|
echo "USE \`$SCHEMA\`;" >> "$DUMPED_FILE"
|
|
mysqldump --defaults-file="$INI_FILE" --no-create-info --skip-triggers $@ >> "$DUMPED_FILE"
|
|
}
|
|
|
|
echo "" > "$DUMPED_FILE"
|
|
|
|
TABLES=(
|
|
util
|
|
config
|
|
)
|
|
dump_tables ${TABLES[@]}
|
|
|
|
TABLES=(
|
|
account
|
|
role
|
|
roleInherit
|
|
roleRole
|
|
userPassword
|
|
accountConfig
|
|
mailConfig
|
|
)
|
|
dump_tables ${TABLES[@]}
|
|
|
|
TABLES=(
|
|
salix
|
|
ACL
|
|
fieldAcl
|
|
)
|
|
dump_tables ${TABLES[@]}
|
|
|
|
TABLES=(
|
|
vn
|
|
alertLevel
|
|
bookingPlanner
|
|
cplusInvoiceType477
|
|
cplusSubjectOp
|
|
cplusTaxBreak
|
|
pgc
|
|
time
|
|
claimResponsible
|
|
claimReason
|
|
claimRedelivery
|
|
claimResult
|
|
ticketUpdateAction
|
|
state
|
|
sample
|
|
department
|
|
component
|
|
componentType
|
|
)
|
|
dump_tables ${TABLES[@]}
|
|
|
|
TABLES=(
|
|
cache
|
|
cache
|
|
)
|
|
dump_tables ${TABLES[@]}
|
|
|
|
TABLES=(
|
|
hedera
|
|
imageCollection
|
|
tpvError
|
|
tpvResponse
|
|
imageCollectionSize
|
|
|
|
)
|
|
dump_tables ${TABLES[@]}
|
|
|
|
TABLES=(
|
|
postgresql
|
|
calendar_labour_type
|
|
labour_agreement
|
|
media_type
|
|
professional_category
|
|
profile_type
|
|
workcenter
|
|
)
|
|
dump_tables ${TABLES[@]}
|
|
|
|
TABLES=(
|
|
sage
|
|
TiposIva
|
|
TiposTransacciones
|
|
TiposRetencion
|
|
)
|
|
dump_tables ${TABLES[@]} |