446 commandes partagées

Ta mémoire technique
collaborative

Ne perds plus jamais une commande. Recherche, copie et partage tes solutions techniques en quelques secondes.

CodeBox
446 Commandes
22 Développeurs
99 Technologies

14 résultat(s) pour "migration"

Réinitialise la base locale avec les migrations.

bash
supabase db reset

Envoie les migrations vers la base distante.

bash
supabase db push

Crée un fichier de migration SQL.

bash
supabase migration new nom_migration

Affiche l'état de chaque migration.

bash
php artisan migrate:status

Génère un Model et sa migration associée.

bash
php artisan make:model NomModel -m

Génère Model, migration, controller resource en une commande.

bash
php artisan make:model NomModel -mcr

Exécute toutes les migrations en attente.

bash
php artisan migrate

Supprime toutes les tables et relance les migrations.

bash
php artisan migrate:fresh

Crée la table pour stocker les jobs échoués.

bash
php artisan queue:failed-table && php artisan migrate

Publie les fichiers d'un package (config, migrations, vues).

bash
php artisan vendor:publish --provider="Vendor\Package\ServiceProvider"

Génère une migration pour modifier une table existante.

bash
php artisan make:migration add_colonne_to_table_table --table=table

Génère un fichier de migration.

bash
php artisan make:migration create_nom_table_table

Annule le dernier batch de migrations.

bash
php artisan migrate:rollback

Annule les 3 derniers batchs de migrations.

bash
php artisan migrate:rollback --step=3