From 227360f86e3db809a2284210e6eab49be4052d36 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 19 Sep 2018 14:01:27 -0400 Subject: [PATCH] Rename db->migrations --- inc/init.php | 4 ++-- inc/{db.php => migrations.php} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename inc/{db.php => migrations.php} (99%) 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.