Use bigIncrements for ids again because the new id function doesn't appear to work

This commit is contained in:
Kevin MacMartin 2020-04-29 00:04:39 -04:00
parent 82ebdbbc2e
commit 8849b13296
6 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ class CreateUsersTable extends Migration
public function up()
{
Schema::create('users', function(Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('name');

View file

@ -14,7 +14,7 @@ class AddContactTable extends Migration
public function up()
{
Schema::create('contact', function(Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('name')->nullable();
$table->string('email')->nullable();
$table->text('message')->nullable();

View file

@ -14,7 +14,7 @@ class AddSubscriptionTable extends Migration
public function up()
{
Schema::create('subscriptions', function(Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->string('name')->nullable();
$table->string('email')->nullable();
$table->timestamps();

View file

@ -14,7 +14,7 @@ class AddBlogTable extends Migration
public function up()
{
Schema::create('blog', function(Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->bigInteger('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->string('title')->nullable();

View file

@ -14,7 +14,7 @@ class CreateFailedJobsTable extends Migration
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->text('connection');
$table->text('queue');
$table->longText('payload');

View file

@ -14,7 +14,7 @@ class AddBlogTagsTable extends Migration
public function up()
{
Schema::create('blog_tags', function(Blueprint $table) {
$table->id();
$table->bigIncrements('id');
$table->bigInteger('blog_id')->unsigned();
$table->foreign('blog_id')->references('id')->on('blog')->onDelete('cascade');
$table->string('name')->nullable();