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

View File

@ -21,6 +21,8 @@ class CreateComponentGroupsTable extends Migration
public function up()
{
Schema::create('component_groups', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name');
$table->timestamps();

View File

@ -21,6 +21,8 @@ class CreateComponentsTable extends Migration
public function up()
{
Schema::create('components', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name');
$table->text('description');

View File

@ -21,6 +21,8 @@ class CreateIncidentTemplatesTable extends Migration
public function up()
{
Schema::create('incident_templates', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name');
$table->string('slug');

View File

@ -21,6 +21,8 @@ class CreateIncidentsTable extends Migration
public function up()
{
Schema::create('incidents', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->integer('component_id')->default(0);
$table->string('name');

View File

@ -21,6 +21,8 @@ class CreateMetricPointsTable extends Migration
public function up()
{
Schema::create('metric_points', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->integer('metric_id');
$table->decimal('value', 10, 3);

View File

@ -21,6 +21,8 @@ class CreateMetricsTable extends Migration
public function up()
{
Schema::create('metrics', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name');
$table->string('suffix');

View File

@ -21,6 +21,8 @@ class CreateSettingsTable extends Migration
public function up()
{
Schema::create('settings', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name');
$table->longText('value');

View File

@ -21,6 +21,8 @@ class CreateSubscribersTable extends Migration
public function up()
{
Schema::create('subscribers', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('email');
$table->string('verify_code');

View File

@ -21,6 +21,8 @@ class CreateUsersTable extends Migration
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('username');
$table->string('password');

View File

@ -21,6 +21,8 @@ class CreateTagsTable extends Migration
public function up()
{
Schema::create('tags', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name');
$table->string('slug');

View File

@ -21,6 +21,8 @@ class CreateComponentTagTable extends Migration
public function up()
{
Schema::create('component_tag', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->integer('component_id');
$table->integer('tag_id');

View File

@ -20,6 +20,8 @@ class CreateJobsTable extends Migration
public function up()
{
Schema::create('jobs', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->bigIncrements('id');
$table->string('queue');
$table->text('payload');

View File

@ -20,6 +20,8 @@ class CreateFailedJobsTable extends Migration
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->text('connection');
$table->text('queue');