diff --git a/inc/init.php b/inc/init.php index c224427..b78dc34 100644 --- a/inc/init.php +++ b/inc/init.php @@ -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(); } ); ?> diff --git a/inc/db.php b/inc/migrations.php similarity index 99% rename from inc/db.php rename to inc/migrations.php index 2e54f4c..579bbc6 100644 --- a/inc/db.php +++ b/inc/migrations.php @@ -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.