2018-04-11 09:22:09 +00:00
|
|
|
#!/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"
|
|
|
|
mysqldump --defaults-file="$INI_FILE" --no-create-info $@ >> "$DUMPED_FILE"
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
salix
|
|
|
|
ACL
|
|
|
|
fieldAcl
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
vn
|
|
|
|
alertLevel
|
|
|
|
bookingPlanner
|
|
|
|
cplusInvoiceType477
|
|
|
|
cplusSubjectOp
|
|
|
|
cplusTaxBreak
|
|
|
|
pgc
|
|
|
|
tag
|
2019-09-17 11:52:29 +00:00
|
|
|
claimResponsible
|
|
|
|
claimReason
|
|
|
|
claimRedelivery
|
|
|
|
claimResult
|
2019-10-15 05:23:34 +00:00
|
|
|
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
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
vn2008
|
2019-11-13 09:41:14 +00:00
|
|
|
time
|
2019-04-03 08:29:05 +00:00
|
|
|
accion_dits
|
|
|
|
businessReasonEnd
|
|
|
|
container
|
|
|
|
department
|
|
|
|
Grupos
|
|
|
|
iva_group_codigo
|
|
|
|
tarifa_componentes
|
|
|
|
tarifa_componentes_series
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
bi
|
|
|
|
tarifa_componentes
|
|
|
|
tarifa_componentes_series
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
cache
|
|
|
|
cache
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
hedera
|
2019-05-30 11:45:13 +00:00
|
|
|
imageCollection
|
2019-04-03 08:29:05 +00:00
|
|
|
tpvError
|
|
|
|
tpvResponse
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
postgresql
|
|
|
|
calendar_labour_type
|
|
|
|
labour_agreement
|
|
|
|
media_type
|
|
|
|
professional_category
|
|
|
|
profile_type
|
|
|
|
workcenter
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|