1if (!Schema::hasTable('tblCategory')) {
2 Schema::create('tblCategory', function($table){
3 $table->engine = 'InnoDB';
4 $table->increments('CategoryID');
5 $table->string('Category', 40);
6 $table->unique('Category', 'tblCategory_UK_Category');
7 $table->timestamps();
8 }
9}
10
1if (!Schema::hasTable('tblCategory'))
2{
3 Schema::create('tblCategory', function($table){
4 //...
5 }
6}
7