salix/db/export-data.sh

93 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash
2019-04-03 08:29:05 +00:00
DUMPED_FILE="dump/dumpedFixtures.sql"
INI_FILE="config.production.ini"
dump_tables() {
SCHEMA=$1
echo "USE \`$SCHEMA\`;" >> "$DUMPED_FILE"
2019-11-26 13:15:43 +00:00
mysqldump --defaults-file="$INI_FILE" --no-create-info --skip-triggers $@ >> "$DUMPED_FILE"
2019-04-03 08:29:05 +00:00
}
echo "" > "$DUMPED_FILE"
2019-04-03 09:21:54 +00:00
TABLES=(
util
config
)
dump_tables ${TABLES[@]}
2019-04-03 08:29:05 +00:00
TABLES=(
account
role
roleInherit
roleRole
2020-09-21 11:24:43 +00:00
userPassword
accountConfig
mailConfig
2019-04-03 08:29:05 +00:00
)
dump_tables ${TABLES[@]}
TABLES=(
salix
ACL
fieldAcl
)
dump_tables ${TABLES[@]}
TABLES=(
vn
alertLevel
bookingPlanner
cplusInvoiceType477
cplusSubjectOp
cplusTaxBreak
pgc
2020-09-29 05:37:29 +00:00
time
claimResponsible
claimReason
claimRedelivery
claimResult
ticketUpdateAction
2019-11-06 09:56:18 +00:00
state
2019-11-06 09:55:04 +00:00
sample
2019-04-03 08:29:05 +00:00
department
2020-01-23 11:58:38 +00:00
component
componentType
2019-04-03 08:29:05 +00:00
)
dump_tables ${TABLES[@]}
TABLES=(
cache
cache
)
dump_tables ${TABLES[@]}
TABLES=(
hedera
imageCollection
2019-04-03 08:29:05 +00:00
tpvError
tpvResponse
2020-11-25 11:37:44 +00:00
imageCollectionSize
2019-04-03 08:29:05 +00:00
)
dump_tables ${TABLES[@]}
TABLES=(
postgresql
calendar_labour_type
labour_agreement
media_type
professional_category
profile_type
workcenter
)
dump_tables ${TABLES[@]}
2020-10-20 10:47:37 +00:00
TABLES=(
sage
TiposIva
TiposTransacciones
2020-11-02 09:58:27 +00:00
TiposRetencion
2020-10-20 10:47:37 +00:00
)
dump_tables ${TABLES[@]}