Skip to content

Commit 6755195

Browse files
authored
Merge pull request #146 from BurtDS/main
✨🔨 Migration, with pretend, fresh and seed
2 parents 59a941e + 30bc184 commit 6755195

4 files changed

Lines changed: 52 additions & 0 deletions

File tree

specs/laravel/laravel_migrate.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Run Laravel database migrations
3+
command: |-
4+
php artisan migrate
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command runs Laravel database migrations
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Drop all tables and run Laravel's migrations
3+
command: |-
4+
php artisan migrate:fresh
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command will drop all excisting tables and run Laravel database migrations after that
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Drop all tables and run Laravel's migrations and seeders
3+
command: |-
4+
php artisan migrate:fresh --seed
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command will drop all excisting tables and run Laravel database migrations after that, with seeding the database at the end.
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Pretend to run Laravel database migrations
3+
command: |-
4+
php artisan migrate --pretend
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command will return the SQL statement that would be performed when we would run the migration
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []

0 commit comments

Comments
 (0)