freescout-calendar-module/Database/Migrations/2021_11_21_104200_create_calendars_table.php
2024-06-20 10:52:19 +02:00

31 lines
653 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCalendarsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create( 'calendars', function ( Blueprint $table ) {
$table->increments( 'id' );
$table->string( 'name' )->unique();
$table->text( 'url' )->nullable();
$table->text( 'synchronization_token' )->nullable();
$table->timestamps();
} );
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::dropIfExists( 'calendars' );
}
}