See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| php artisan tinker | |
| $tables = DB::select('SHOW TABLES'); | |
| $tables_in_database = "Tables_in_".Config::get('database.connections.mysql.database'); | |
| DB::statement('SET FOREIGN_KEY_CHECKS=0;'); | |
| foreach ($tables as $table) { | |
| Schema::drop($table->$tables_in_database); | |
| } |
| #!/bin/bash | |
| #============================================================================== | |
| #TITLE: mysql_backup.sh | |
| #DESCRIPTION: script for automating the daily mysql backups on development computer | |
| #AUTHOR: tleish | |
| #DATE: 2013-12-20 | |
| #VERSION: 0.4 | |
| #USAGE: ./mysql_backup.sh | |
| #CRON: | |
| # example cron for daily db backup @ 9:15 am |