2023_02_11_155505_change_tweet_field_to_library_items_table.php

This commit is contained in:
HolgerHatGarKeineNode
2023-02-11 16:55:27 +01:00
parent a067408463
commit c965188b00

View File

@@ -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.
* @return void
*/
public function up()
{
Schema::table('library_items', function (Blueprint $table) {
$table->boolean('tweet')
->default(false)
->change();
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::table('library_items', function (Blueprint $table) {
//
});
}
};