Migrations were pretty much useless for database set up, so that needed some attention to make setting up the project easier. Now, all necessary tables can be created by running the `artisan migrate` command assuming one has the database parameters set in the .env file also added full text search capabilites through the database set up, which the model itself can use to find locations, so the search has been updated in the appropriate locations as well. still need to add initial account set up and a form for adding sources through the UI, but this was a big step towards letting anyone set up their own version of tbs
35 lines
980 B
PHP
35 lines
980 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('appeal', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->uuid('uuid');
|
|
$table->string('location', length: 255);
|
|
$table->string('location_admin', length: 255);
|
|
$table->string('sponsor', length: 255);
|
|
$table->text('description');
|
|
$table->boolean('reviewed')->default(false);
|
|
$table->boolean('approved')->default(false);
|
|
$table->timestamps(precision: 0);
|
|
$table->timestamp('deleted_at', precision: 0)->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('appeal');
|
|
}
|
|
};
|