Laravel Migration Safety

This skill should be used when the agent writes, edits, or reviews files in database/migrations, generates a migration via make:migration, or runs/suggests migrate, migrate:fresh, migrate:refresh, migrate:rollback, or db:wipe. Trigger on Schema::create / Schema::table / Blueprint usage, on adding/dropping/renaming columns or indexes, on NOT NULL / nullable / default decisions, on foreign-key (constrained, foreignId, dropForeign) changes, on data backfills inside up(), on any down() method, and on deploy/CI steps that apply migrations to a populated or production database. Also load when the user mentions "migration", "schema change", "drop column", "rename column", "add index", "zero downtime", "expand contract", "table lock", "online DDL", "doctrine/dbal", or "lost data after deploy".

shaxzodbek-uzb Updated

File contents

shaxzodbek-uzb/laravel-guardrails/tree/main/skills/laravel-migration-safety commit 583d2f4b3b

Frequently asked questions

npx skillmds@latest add shaxzodbek-uzb/laravel-migration-safety