freescout-calendar-module/Database/Migrations/2024_12_10_153547_add_title_template.php
2024-12-20 12:00:28 +01:00

29 lines
599 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddTitleTemplate extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::table('calendars', function (Blueprint $table) {
$table->string('title_template')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::table('calendars', function (Blueprint $table) {
$table->dropColumn('title_template');
});
}
}