diff --git a/packages/admin/database/migrations/2024_11_25_110000_rename_name_columns_on_staff_table.php b/packages/admin/database/migrations/2024_11_25_110000_rename_firstname_column_on_staff_table.php similarity index 82% rename from packages/admin/database/migrations/2024_11_25_110000_rename_name_columns_on_staff_table.php rename to packages/admin/database/migrations/2024_11_25_110000_rename_firstname_column_on_staff_table.php index 17b1ab675..357cf0c28 100644 --- a/packages/admin/database/migrations/2024_11_25_110000_rename_name_columns_on_staff_table.php +++ b/packages/admin/database/migrations/2024_11_25_110000_rename_firstname_column_on_staff_table.php @@ -10,7 +10,6 @@ public function up(): void { Schema::table($this->prefix.'staff', function (Blueprint $table) { $table->renameColumn('firstname', 'first_name'); - $table->renameColumn('lastname', 'last_name'); }); } @@ -18,7 +17,6 @@ public function down(): void { Schema::table($this->prefix.'staff', function (Blueprint $table) { $table->renameColumn('first_name', 'firstname'); - $table->renameColumn('last_name', 'lastname'); }); } }; diff --git a/packages/admin/database/migrations/2024_11_25_110001_rename_lastname_column_on_staff_table.php b/packages/admin/database/migrations/2024_11_25_110001_rename_lastname_column_on_staff_table.php new file mode 100644 index 000000000..98be1ed52 --- /dev/null +++ b/packages/admin/database/migrations/2024_11_25_110001_rename_lastname_column_on_staff_table.php @@ -0,0 +1,22 @@ +prefix.'staff', function (Blueprint $table) { + $table->renameColumn('lastname', 'last_name'); + }); + } + + public function down(): void + { + Schema::table($this->prefix.'staff', function (Blueprint $table) { + $table->renameColumn('last_name', 'lastname'); + }); + } +};