Override ignore_tables_out #28
-
Hey! I tried to override the tables which are excluded by the export this way: config.php: set('db_default', array_merge(get('db_default'), [
'ignore_tables_out' => [
'cf_.*',
'cache_.*',
'be_sessions',
'fe_sessions',
'fe_session_data',
'tx_devlog',
'tx_extensionmanager_domain_model_extension',
'tx_solr_.*',
'tx_crawler_queue',
'tx_crawler_process',
],
])); Unfortunately, it doesn't work. I looked into the code and found task('debug:config', function () {
$dbConfig = get('db_databases_merged');
writeln(print_r($dbConfig, true));
}); The output includes the default tables including sys_history, what I am trying to change. task debug:config
[local] /usr/bin/php8.2 /var/www/html/vendor/deployer/deployer/dep worker --port 43985 --task debug:config --host local --decorated -vvv
[local] Array
(
[database_default] => Array
(
[truncate_tables] => Array
(
[0] => (?!cache_imagesizes)cache_.*
)
[ignore_tables_out] => Array
(
[0] => cf_.*
[1] => cache_.*
[2] => be_sessions
[3] => fe_sessions
[4] => fe_session_data
[5] => sys_file_processedfile
[6] => sys_history
[7] => sys_log
[8] => sys_refindex
[9] => tx_devlog
[10] => tx_extensionmanager_domain_model_extension
[11] => tx_powermail_domain_model_mail
[12] => tx_powermail_domain_model_answer
[13] => tx_solr_.*
[14] => tx_crawler_queue
[15] => tx_crawler_process
)
[post_sql_in] =>
[post_sql_in_markers] =>
[host] => db
[port] =>
[dbname] => db
[user] => db
[password] => db
)
)
done on local
done debug:config 100ms I also attempted to use Is it a bug, or am I doing it the wrong way? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
hi, can you try?
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt reply! :) Now, the two tables are appended to the end: task debug:config
[local] /usr/bin/php8.2 /var/www/html/vendor/deployer/deployer/dep worker --port 44685 --task debug:config --host local --decorated -vvv
[local] Array
(
[database_default] => Array
(
[truncate_tables] => Array
(
[0] => (?!cache_imagesizes)cache_.*
)
[ignore_tables_out] => Array
(
[0] => cf_.*
[1] => cache_.*
[2] => be_sessions
[3] => fe_sessions
[4] => fe_session_data
[5] => sys_file_processedfile
[6] => sys_history
[7] => sys_log
[8] => sys_refindex
[9] => tx_devlog
[10] => tx_extensionmanager_domain_model_extension
[11] => tx_powermail_domain_model_mail
[12] => tx_powermail_domain_model_answer
[13] => tx_solr_.*
[14] => tx_crawler_queue
[15] => tx_crawler_process
[16] => my_table1
[17] => my_table2
)
[post_sql_in] =>
[post_sql_in_markers] =>
[host] => db
[port] =>
[dbname] => db
[user] => db
[password] => db
)
)
done on local
done debug:config 102ms |
Beta Was this translation helpful? Give feedback.
-
You wanted to unset. I did not read carefully. Sry.
We have it done better way in https://github.com/sourcebroker/deployer-extended-media
|
Beta Was this translation helpful? Give feedback.
-
All right, that works – thank you! Yes, I was already looking for that because I also use |
Beta Was this translation helpful? Give feedback.
You wanted to unset. I did not read carefully. Sry.
Looks like the only way now is:
We have it done better way in https://github.com/sourcebroker/deployer-extended-media
but for
deployer-extended-database
there is no yet such possiblities: