Rename db->migrations

This commit is contained in:
Jeremy Dormitzer 2018-09-19 14:01:27 -04:00
parent 1d4be66856
commit 227360f86e
No known key found for this signature in database
GPG Key ID: 04F17C0F5A32C320
2 changed files with 3 additions and 3 deletions

View File

@ -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();
} );
?>

View File

@ -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.