You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
659 B
19 lines
659 B
#!/bin/bash
|
|
|
|
### DO NOT EDIT THIS FILE
|
|
|
|
function shopware5BuildIgnoredTablesArguments {
|
|
local env=$(getArgument "$1" "Usage: buildIgnoredTables [live|stage|local] [ignoredTablesArray]" "live stage local")
|
|
local ignoredTables=$(getArgument "$2" "Usage: buildIgnoredTables [live|stage|local] [ignoredTablesArray]" true)
|
|
|
|
local database_name=$(eval "echo \"\$${env}_database_name\"")
|
|
|
|
ignoredTables=($ignoredTables)
|
|
local ignoredTablesArguments=""
|
|
for table in "${ignoredTables[@]}"
|
|
do
|
|
ignoredTablesArguments="$ignoredTablesArguments --ignore-table=\"${database_name}.${table}\""
|
|
done
|
|
|
|
echo "$ignoredTablesArguments"
|
|
}
|