Commit 73f38911 by Jonathan Reinink

Add "failed_jobs" migration and cleanup migrations

1 parent e79e7994
...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema; ...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema;
class CreatePasswordResetsTable extends Migration class CreatePasswordResetsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('password_resets', function (Blueprint $table) { Schema::create('password_resets', function (Blueprint $table) {
...@@ -14,4 +19,14 @@ class CreatePasswordResetsTable extends Migration ...@@ -14,4 +19,14 @@ class CreatePasswordResetsTable extends Migration
$table->timestamp('created_at')->nullable(); $table->timestamp('created_at')->nullable();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('password_resets');
}
} }
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFailedJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('failed_jobs');
}
}
...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema; ...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema;
class CreateAccountsTable extends Migration class CreateAccountsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('accounts', function (Blueprint $table) { Schema::create('accounts', function (Blueprint $table) {
...@@ -14,4 +19,14 @@ class CreateAccountsTable extends Migration ...@@ -14,4 +19,14 @@ class CreateAccountsTable extends Migration
$table->timestamps(); $table->timestamps();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts');
}
} }
...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema; ...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration class CreateUsersTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('users', function (Blueprint $table) { Schema::create('users', function (Blueprint $table) {
...@@ -22,4 +27,14 @@ class CreateUsersTable extends Migration ...@@ -22,4 +27,14 @@ class CreateUsersTable extends Migration
$table->softDeletes(); $table->softDeletes();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
} }
...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema; ...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema;
class CreateOrganizationsTable extends Migration class CreateOrganizationsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('organizations', function (Blueprint $table) { Schema::create('organizations', function (Blueprint $table) {
...@@ -23,4 +28,14 @@ class CreateOrganizationsTable extends Migration ...@@ -23,4 +28,14 @@ class CreateOrganizationsTable extends Migration
$table->softDeletes(); $table->softDeletes();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('organizations');
}
} }
...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema; ...@@ -6,6 +6,11 @@ use Illuminate\Support\Facades\Schema;
class CreateContactsTable extends Migration class CreateContactsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('contacts', function (Blueprint $table) { Schema::create('contacts', function (Blueprint $table) {
...@@ -25,4 +30,14 @@ class CreateContactsTable extends Migration ...@@ -25,4 +30,14 @@ class CreateContactsTable extends Migration
$table->softDeletes(); $table->softDeletes();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contacts');
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!