ActionScheduler tables are not reinitialized after manually deleting the tables #1032
Labels
priority: normal
The issue/PR is normal priority—not many people are affected or there’s a workaround, etc.
type: enhancement
The issue is a request for an enhancement.
I am trying to integrate the action scheduler lib into my plugin. I wanted to test whether it will generate the tables again after I deleted them (manually on phpadmin) and it did not. My env is running in docker container together with phpadmin, mysql, wp. I solved the problem by restarting my env from the scratch. I am worrying it may cause problem for plugin in the future if a client deleted the tables accidentially and it will not generate the tables again for them.
[php:notice] [pid 19] [client 192.168.65.1:64193] WordPress database error Table 'wordpress.wp_actionscheduler_groups' doesn't exist for query SELECT group_id FROM wp_actionscheduler_groups WHERE slug='' made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, test_action_scheduler, as_enqueue_async_action, ActionScheduler_ActionFactory->create, ActionScheduler_ActionFactory->store, ActionScheduler_HybridStore->save_action, ActionScheduler_DBStoreMigrator->save_action, ActionScheduler_DBStore->save_action, ActionScheduler_DBStore->save_action_to_db, ActionScheduler_DBStore->get_group_ids, referer: http://localhost:8000/wp-admin/plugins.php?plugin_status=all&paged=1&s
The text was updated successfully, but these errors were encountered: