diff --git a/database/migrations/2025_03_25_120530_rename_regions_to_subnational.php b/database/migrations/2025_03_25_120530_rename_regions_to_subnational.php new file mode 100644 index 0000000..055dd63 --- /dev/null +++ b/database/migrations/2025_03_25_120530_rename_regions_to_subnational.php @@ -0,0 +1,30 @@ +update([ + 'subnational' => DB::raw('region') + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + + DB::table('usage_logs')->update([ + 'region' => DB::raw('subnational') + ]); + } +}