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"
|
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
|
2022-05-02 08:57:13 +00:00
|
|
|
version
|
|
|
|
versionLog
|
2019-04-03 09:21:54 +00:00
|
|
|
)
|
|
|
|
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
|
2021-03-02 15:43:33 +00:00
|
|
|
module
|
2021-11-24 12:02:58 +00:00
|
|
|
defaultViewConfig
|
2019-04-03 08:29:05 +00:00
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
vn
|
2022-12-12 12:11:45 +00:00
|
|
|
agencyTermConfig
|
2019-04-03 08:29:05 +00:00
|
|
|
alertLevel
|
|
|
|
bookingPlanner
|
2021-06-22 13:01:10 +00:00
|
|
|
businessType
|
2023-11-20 14:09:55 +00:00
|
|
|
siiTypeInvoiceIn
|
2023-11-09 13:33:46 +00:00
|
|
|
siiTypeInvoiceOut
|
2021-02-10 14:03:11 +00:00
|
|
|
cplusRectificationType
|
2019-04-03 08:29:05 +00:00
|
|
|
cplusSubjectOp
|
|
|
|
cplusTaxBreak
|
2023-11-20 14:09:55 +00:00
|
|
|
siiTrascendencyInvoiceIn
|
2019-09-17 11:52:29 +00:00
|
|
|
claimResponsible
|
|
|
|
claimReason
|
|
|
|
claimRedelivery
|
|
|
|
claimResult
|
2020-01-23 11:58:38 +00:00
|
|
|
component
|
|
|
|
componentType
|
2021-02-10 14:03:11 +00:00
|
|
|
continent
|
2021-11-18 08:16:36 +00:00
|
|
|
department
|
2023-01-13 12:33:59 +00:00
|
|
|
docuware
|
2021-11-18 08:16:36 +00:00
|
|
|
itemPackingType
|
|
|
|
pgc
|
|
|
|
sample
|
|
|
|
state
|
|
|
|
ticketUpdateAction
|
2021-05-25 11:33:17 +00:00
|
|
|
volumeConfig
|
2022-06-23 10:14:16 +00:00
|
|
|
workCenter
|
2023-04-26 12:30:58 +00:00
|
|
|
companyI18n
|
2023-11-20 14:09:55 +00:00
|
|
|
workerTimeControlError
|
|
|
|
silexACL
|
2019-04-03 08:29:05 +00:00
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
cache
|
|
|
|
cache
|
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
|
|
|
TABLES=(
|
|
|
|
hedera
|
2022-05-02 08:57:13 +00:00
|
|
|
browser
|
2019-05-30 11:45:13 +00:00
|
|
|
imageCollection
|
2022-05-02 08:57:13 +00:00
|
|
|
imageCollectionSize
|
|
|
|
language
|
|
|
|
link
|
|
|
|
location
|
|
|
|
menu
|
|
|
|
message
|
|
|
|
metatag
|
|
|
|
newsTag
|
|
|
|
restPriv
|
|
|
|
social
|
2019-04-03 08:29:05 +00:00
|
|
|
tpvError
|
|
|
|
tpvResponse
|
2020-11-25 11:37:44 +00:00
|
|
|
|
2019-04-03 08:29:05 +00:00
|
|
|
)
|
|
|
|
dump_tables ${TABLES[@]}
|
|
|
|
|
2020-10-20 10:47:37 +00:00
|
|
|
TABLES=(
|
|
|
|
sage
|
|
|
|
TiposIva
|
|
|
|
TiposTransacciones
|
2020-11-02 09:58:27 +00:00
|
|
|
TiposRetencion
|
2023-06-08 12:42:07 +00:00
|
|
|
taxType
|
2020-10-20 10:47:37 +00:00
|
|
|
)
|
2022-06-23 10:14:16 +00:00
|
|
|
dump_tables ${TABLES[@]}
|