From 1b5e892dac092d916d5d9ec83eef02c452e0bd7c Mon Sep 17 00:00:00 2001 From: Mark van den Broek Date: Sun, 12 Jan 2025 16:44:26 +0100 Subject: [PATCH] Merge migrations --- ...11_26_115953_create_floor_prices_table.php | 6 ++-- ...wners_and_supply_to_floor_prices_table.php | 28 ------------------- 2 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 database/migrations/2024_12_21_072800_add_owners_and_supply_to_floor_prices_table.php diff --git a/database/migrations/2024_11_26_115953_create_floor_prices_table.php b/database/migrations/2024_11_26_115953_create_floor_prices_table.php index 3ef0e5f..7229d10 100644 --- a/database/migrations/2024_11_26_115953_create_floor_prices_table.php +++ b/database/migrations/2024_11_26_115953_create_floor_prices_table.php @@ -4,13 +4,15 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration -{ +return new class extends Migration { public function up(): void { Schema::create('floor_prices', function (Blueprint $table) { $table->id(); $table->string('symbol')->default('pizza-ninjas'); + $table->integer('owners')->unsigned()->nullable(); + $table->integer('supply')->unsigned()->nullable(); + $table->integer('listed')->unsigned()->nullable(); $table->double('price_in_sats')->unsigned(); $table->timestamp('created_at'); }); diff --git a/database/migrations/2024_12_21_072800_add_owners_and_supply_to_floor_prices_table.php b/database/migrations/2024_12_21_072800_add_owners_and_supply_to_floor_prices_table.php deleted file mode 100644 index d3461eb..0000000 --- a/database/migrations/2024_12_21_072800_add_owners_and_supply_to_floor_prices_table.php +++ /dev/null @@ -1,28 +0,0 @@ -integer('owners')->unsigned()->nullable()->after('symbol'); - $table->integer('supply')->unsigned()->nullable()->after('owners'); - $table->integer('listed')->unsigned()->nullable()->after('supply'); - }); - } - - public function down(): void - { - Schema::table('floor_prices', function (Blueprint $table) { - $table->dropColumn([ - 'owners', - 'supply', - 'listed', - ]); - }); - } -};