Files
newznab-tmux/database/migrations/2018_01_20_195801_create_logging_table.php
T
2023-03-30 14:15:45 +00:00

32 lines
755 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateLoggingTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('logging', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->charset = 'utf8';
$table->collation = 'utf8_unicode_ci';
$table->increments('id');
$table->dateTime('time')->nullable();
$table->string('username', 50)->nullable();
$table->string('host', 40)->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::drop('logging');
}
}