mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 15:42:31 -05:00
Use bigIncrements for ids again because the new id function doesn't appear to work
This commit is contained in:
parent
82ebdbbc2e
commit
8849b13296
6 changed files with 6 additions and 6 deletions
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue