db:execute
php mitosis db:execute database/migrations/20260711_fix_user_table.sql
✓ Executed: database/migrations/20260711_fix_user_table.sql
Thin wrapper over Migration::runSqlScript() — statements are
split on semicolons after stripping -- line comments. This is a deliberately simple
splitter, not a real SQL parser: a semicolon inside a string literal is (incorrectly) treated as a
statement boundary. Fine for typical DDL/seed scripts; not a substitute for a real SQL client on
anything with string literals containing semicolons.
--context=NAME to target a non-default DB connection.
Next steps
- db:seed — running a PHP seed file instead of raw SQL.