artisan-migrate Questions

10

Solved

I am new to Laravel and I'm following Laravel Documentations as well as few Tutorial Videos. However, I am running this php artisan migrate code in my local CMD prompt and it's not creating Databas...
Chatterer asked 8/4, 2016 at 6:24

9

Solved

In Laravel, there appears to be a command for creating a migration, but not removing. Create migration command: php artisan migrate:make create_users_table If I want to delete the migration, ca...
Laurenalaurence asked 1/6, 2013 at 9:53

23

Solved

I have an orders table and a have a sell_shipping_labels which references orders.id as a foreign. However when I run the Laravel migration I get the dreaded error code: [Illuminate\Database\Quer...
Urology asked 9/12, 2017 at 13:9

3

Solved

I'm trying to get started with Laravel + PostgreSQL and been following the database tutorial. Unfortunately, after updating the database configuration file and running php artisan migrate, the fol...
Maltz asked 31/1, 2016 at 8:25

8

I am new to laravel. I am working on laravel version 6. I have created migration. It works nicely the first time, but if i change something in the migration file and then i run php artisan migrate ...
Arther asked 2/10, 2019 at 14:0

4

I already read Running one specific laravel 4 migration (single file) but this doesn't give me the answer. I want to know whether there is a way to run the command so that it just executes the nex...
Handspring asked 12/6, 2015 at 19:45

2

Can I run php artisan migrate:refresh for specific table? Or can I refresh specific table migration in general? I tried this: php artisan migrate --path=/database/migrations/selected/ But it's ...
Jessee asked 8/11, 2017 at 1:41

4

When doing a migration, in the Windows console I execute the command: php artisan migrate When I run the command, it shows me the following error: [Symfony\Component\Debug\Exception\FatalErrorE...
Harner asked 5/5, 2017 at 13:34

4

New in Laravel. Probably a silly question. I had setup database like this: 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'),...
Underpart asked 1/6, 2016 at 4:2

2

When running php artisan migrate I get the an error when it is trying to create the migrations table in mysql: In Connection.php line 664: SQLSTATE[42000]: Syntax error or access violation: 1103...
Frieze asked 13/8, 2019 at 7:56

6

Solved

Just went through all the steps listed on the Laravel site to install and get up and running for MacOS HighSierra. I currently have Composer, Homebrew, valet, PHP 7.2.8, MySQL version 8.0.11 and La...
Strawser asked 22/7, 2018 at 17:45

3

Solved

I'm trying to create a custom laravel (5.2) migration command that basically works the same as migrate:status except it just lists the pending migrations instead of all the migrations. To do this ...
Korean asked 29/8, 2017 at 12:0

2

Solved

When running artisan migrate on a Laravel 5 project, it is failing with the following FatalErrorException: $ artisan migrate -vvv --force [Symfony\Component\Debug\Exception\FatalErrorExceptio...

7

When running the following command at the root of my Laravel 5 application, php artisan migrate:make create_mytable I get the following error: [InvalidArgumentException] Command "migrate:make...
Ballou asked 15/9, 2014 at 4:0

4

My migration failed, so I just ran a query manually in MySQL Workbench. Is there an artisan command to mark a migration as complete? So that when I run future migrations, it skips the ones I know ...
Abranchiate asked 24/2, 2018 at 2:7

1

I am using Laravel 5.6 when I use the command 'php artisan migrate' I get this error (after a minute) : "Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] Operation timed out (SQL: sele...
Artema asked 24/2, 2018 at 23:55

6

My system config is Ubuntu 14.04 + XAMPP + Laravel 4 installed mysql driver is configured on /opt/lampp/htdocs/larva/app/config/database.php 'mysql' => array( 'driver' => 'mysql', 'host'...
Sacks asked 2/10, 2014 at 7:28

1

Solved

I am trying to deploy my Laravel app on a DigitalOcean droplet. The droplet is setup with nginx, php7, and postgres, I follow up the tuts from DigitalOcean on how to set them up. Then I try to foll...
Horvath asked 22/2, 2017 at 3:20

8

Solved

I use the command php artisan migrate to migrate my database connection but I still get the same error and I checked everything, nothing wrong. I used the same connection that I always use in Larav...
Defy asked 8/2, 2015 at 1:50

1

Solved

I am looking for a solution that will allow me to run artisan commands from my local machine and for them to take effect on my homestead VM. For example, when running php artisan migrate the comma...

2

Solved

Is it possible to execute php artisan migrate in a way to migrate all the tables but leave only a few migration files under database\migrations? The scenario is, our business requirement needs 2 D...
Chronoscope asked 16/2, 2016 at 18:18

2

Solved

Recently I cleaned up my tables locally, and this resulted in me deleting 'Match' table. I am now receiving errors on the production server because of this. Locally, I ran php artisan migrate:rese...

2

Solved

While running this command 'php artisan migrate', i got this error "couldn't connect to local MYSQL server through socket". I was going through all stackoverflow answers, i got many suggestions s...
Display asked 7/9, 2015 at 11:39

1

Solved

I'm following along with this set of tutorials on laravel (They're excellent), and I keep running into this error: PHP error: Use of undefined constant Article whenever I enter this line of cod...
Wives asked 11/4, 2015 at 15:42
1

© 2022 - 2024 — McMap. All rights reserved.