Rename db->migrations
This commit is contained in:
parent
1d4be66856
commit
227360f86e
@ -3,7 +3,7 @@ namespace init;
|
||||
|
||||
require_once plugin_dir_path( __FILE__ ) . '/api.php';
|
||||
require_once plugin_dir_path( __FILE__ ) . '/actors.php';
|
||||
require_once plugin_dir_path( __FILE__ ) . '/db.php';
|
||||
require_once plugin_dir_path( __FILE__ ) . '/migrations.php';
|
||||
|
||||
add_action( 'rest_api_init', function() {
|
||||
\api\register_routes();
|
||||
@ -15,7 +15,7 @@ add_action( 'user_register', function( $user_id ) {
|
||||
} );
|
||||
|
||||
add_action( 'pterotype_init', function() {
|
||||
\db\run_migrations();
|
||||
\migrations\run_migrations();
|
||||
\actors\initialize_user_actors();
|
||||
} );
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
Poor man's migration system
|
||||
*/
|
||||
namespace db;
|
||||
namespace migrations;
|
||||
|
||||
/*
|
||||
It's okay to add new queries to this function, but don't ever delete queries.
|
Loading…
Reference in New Issue
Block a user