Skip to content

Commit

Permalink
Merge pull request #146 from BurtDS/main
Browse files Browse the repository at this point in the history
✨🔨 Migration, with pretend, fresh and seed
  • Loading branch information
alokedesai authored Mar 22, 2023
2 parents 59a941e + 30bc184 commit 6755195
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions specs/laravel/laravel_migrate.yml
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: []
13 changes: 13 additions & 0 deletions specs/laravel/laravel_migrate_fresh.yml
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: []
13 changes: 13 additions & 0 deletions specs/laravel/laravel_migrate_fresh_seed.yml
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: []
13 changes: 13 additions & 0 deletions specs/laravel/laravel_migrate_pretend.yml
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: []

0 comments on commit 6755195

Please sign in to comment.