Fixes 768. php artisan migrate will work regardless of mysql version or default_database_engine.

This commit is contained in:
Chase Coney
2015-06-30 09:53:29 -05:00
parent 793564e0c0
commit 04161678b6
13 changed files with 26 additions and 0 deletions
@@ -21,6 +21,8 @@ class CreateComponentGroupsTable extends Migration
public function up() public function up()
{ {
Schema::create('component_groups', function (Blueprint $table) { Schema::create('component_groups', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('name'); $table->string('name');
$table->timestamps(); $table->timestamps();
@@ -21,6 +21,8 @@ class CreateComponentsTable extends Migration
public function up() public function up()
{ {
Schema::create('components', function (Blueprint $table) { Schema::create('components', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('name'); $table->string('name');
$table->text('description'); $table->text('description');
@@ -21,6 +21,8 @@ class CreateIncidentTemplatesTable extends Migration
public function up() public function up()
{ {
Schema::create('incident_templates', function (Blueprint $table) { Schema::create('incident_templates', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('name'); $table->string('name');
$table->string('slug'); $table->string('slug');
@@ -21,6 +21,8 @@ class CreateIncidentsTable extends Migration
public function up() public function up()
{ {
Schema::create('incidents', function (Blueprint $table) { Schema::create('incidents', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->integer('component_id')->default(0); $table->integer('component_id')->default(0);
$table->string('name'); $table->string('name');
@@ -21,6 +21,8 @@ class CreateMetricPointsTable extends Migration
public function up() public function up()
{ {
Schema::create('metric_points', function (Blueprint $table) { Schema::create('metric_points', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->integer('metric_id'); $table->integer('metric_id');
$table->decimal('value', 10, 3); $table->decimal('value', 10, 3);
@@ -21,6 +21,8 @@ class CreateMetricsTable extends Migration
public function up() public function up()
{ {
Schema::create('metrics', function (Blueprint $table) { Schema::create('metrics', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('name'); $table->string('name');
$table->string('suffix'); $table->string('suffix');
@@ -21,6 +21,8 @@ class CreateSettingsTable extends Migration
public function up() public function up()
{ {
Schema::create('settings', function (Blueprint $table) { Schema::create('settings', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('name'); $table->string('name');
$table->longText('value'); $table->longText('value');
@@ -21,6 +21,8 @@ class CreateSubscribersTable extends Migration
public function up() public function up()
{ {
Schema::create('subscribers', function (Blueprint $table) { Schema::create('subscribers', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('email'); $table->string('email');
$table->string('verify_code'); $table->string('verify_code');
@@ -21,6 +21,8 @@ class CreateUsersTable extends Migration
public function up() public function up()
{ {
Schema::create('users', function (Blueprint $table) { Schema::create('users', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('username'); $table->string('username');
$table->string('password'); $table->string('password');
@@ -21,6 +21,8 @@ class CreateTagsTable extends Migration
public function up() public function up()
{ {
Schema::create('tags', function (Blueprint $table) { Schema::create('tags', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->string('name'); $table->string('name');
$table->string('slug'); $table->string('slug');
@@ -21,6 +21,8 @@ class CreateComponentTagTable extends Migration
public function up() public function up()
{ {
Schema::create('component_tag', function (Blueprint $table) { Schema::create('component_tag', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->integer('component_id'); $table->integer('component_id');
$table->integer('tag_id'); $table->integer('tag_id');
@@ -20,6 +20,8 @@ class CreateJobsTable extends Migration
public function up() public function up()
{ {
Schema::create('jobs', function (Blueprint $table) { Schema::create('jobs', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->bigIncrements('id'); $table->bigIncrements('id');
$table->string('queue'); $table->string('queue');
$table->text('payload'); $table->text('payload');
@@ -20,6 +20,8 @@ class CreateFailedJobsTable extends Migration
public function up() public function up()
{ {
Schema::create('failed_jobs', function (Blueprint $table) { Schema::create('failed_jobs', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id'); $table->increments('id');
$table->text('connection'); $table->text('connection');
$table->text('queue'); $table->text('queue');