mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-09-19 15:58:02 +00:00
36 lines
822 B
PHP
36 lines
822 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class CreateHashtagsTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('hashtags', function (Blueprint $table) {
|
||
|
$table->bigIncrements('id');
|
||
|
$table->string('name')->unique()->index();
|
||
|
$table->string('slug')->unique()->index();
|
||
|
$table->boolean('is_nsfw')->default(false);
|
||
|
$table->boolean('is_banned')->default(false);
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('hashtags');
|
||
|
}
|
||
|
}
|