Database
Database Migrations
Creating New Migrations
cd /var/www/vhosts/elentra-1x-me
php elentraphp elentra
The following commands are available in Elentra CLI 1.0:
migrate Allows you to manage database migrations.
model Create blank models based on database information.
help The Elentra CLI help menu.php elentra migrate
The following actions are available in the migrate command:
--create Create a new database migration file.
--pending See a list of the pending database migrations in your installation.
--up-s Run all pending migrations against your database. Provide optional filename to output SQL instead of run it.
--down-s Rollback the last successful up migration. Provide optional filename to output SQL instead of run it.
--audit Verifies that all present migrations have been run successfully.
--help The migrate help menu.Applying Pending Migrations
Database Models
Database Tables
Column naming
Last updated