-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from BurtDS/main
✨🔨 Migration, with pretend, fresh and seed
- Loading branch information
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: Run Laravel database migrations | ||
command: |- | ||
php artisan migrate | ||
tags: | ||
- Laravel | ||
- Php | ||
description: This command runs Laravel database migrations | ||
arguments: [] | ||
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" | ||
author: Bert De Swaef | ||
author_url: "https://github.com/BurtDS" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: Drop all tables and run Laravel's migrations | ||
command: |- | ||
php artisan migrate:fresh | ||
tags: | ||
- Laravel | ||
- Php | ||
description: This command will drop all excisting tables and run Laravel database migrations after that | ||
arguments: [] | ||
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" | ||
author: Bert De Swaef | ||
author_url: "https://github.com/BurtDS" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: Drop all tables and run Laravel's migrations and seeders | ||
command: |- | ||
php artisan migrate:fresh --seed | ||
tags: | ||
- Laravel | ||
- Php | ||
description: This command will drop all excisting tables and run Laravel database migrations after that, with seeding the database at the end. | ||
arguments: [] | ||
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" | ||
author: Bert De Swaef | ||
author_url: "https://github.com/BurtDS" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: Pretend to run Laravel database migrations | ||
command: |- | ||
php artisan migrate --pretend | ||
tags: | ||
- Laravel | ||
- Php | ||
description: This command will return the SQL statement that would be performed when we would run the migration | ||
arguments: [] | ||
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" | ||
author: Bert De Swaef | ||
author_url: "https://github.com/BurtDS" | ||
shells: [] |