backup: before auth-required booking and phone number feature
This commit is contained in:
1 parent
83d9a67188
commit
900eb24b37
10 files changed
+618
-253
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('bookings', function (Blueprint $table) {
|
||||
// Stores {base: float, rules: {1:float, ..., 7:float}} at booking creation.
|
||||
// Checkout fee calculation uses this snapshot so price changes never affect
|
||||
// in-progress or historical bookings.
|
||||
$table->json('pricing_snapshot')->nullable()->after('paid_at');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('bookings', function (Blueprint $table) {
|
||||
$table->dropColumn('pricing_snapshot');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user