Skip to content

Instantly share code, notes, and snippets.

@anchetaWern
Created December 5, 2012 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchetaWern/4212172 to your computer and use it in GitHub Desktop.
Save anchetaWern/4212172 to your computer and use it in GitHub Desktop.
Generates database migrations for ums
php artisan generate:migration create_departments_table
department:string
php artisan generate:migration create_roles_table
department_id:integer role:string
php artisan generate:migration create_transactions_table
department_id:integer main_menu:string menu_text:string address:string
php artisan generate:migration create_rolestransactions_table
role_id:integer transaction_id:integer status:integer
php artisan generate:migration create_userlogs_table
user_id:integer user:string department:string
transaction:string dateandtime:timestamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment