Permalink
Browse files

add default database string lengths

  • Loading branch information...
laurencei committed Feb 11, 2018
1 parent 56eeebc commit 2d7eebbfc96cc22e23978c7e0dfc7eb8c46dcda7
@@ -15,7 +15,7 @@ public function up()
{
Schema::connection(config('eyewitness.eyewitness_database_connection'))->create('eyewitness_io_statuses', function (Blueprint $table) {
$table->increments('id');
$table->string('monitor');
$table->string('monitor', 191);
$table->boolean('healthy');
$table->timestamp('updated_at')->useCurrent();
});
@@ -15,9 +15,9 @@ public function up()
{
Schema::connection(config('eyewitness.eyewitness_database_connection'))->create('eyewitness_io_history_monitors', function (Blueprint $table) {
$table->increments('id');
$table->string('type');
$table->string('meta');
$table->string('value')->nullable()->default(null);
$table->string('type', 191);
$table->string('meta', 191);
$table->string('value', 191)->nullable()->default(null);
$table->text('record');
$table->timestamp('created_at')->useCurrent();
});
@@ -15,9 +15,9 @@ public function up()
{
Schema::connection(config('eyewitness.eyewitness_database_connection'))->create('eyewitness_io_notification_recipients', function (Blueprint $table) {
$table->increments('id');
$table->string('type')->index();
$table->string('address');
$table->string('meta')->nullable()->default(null);
$table->string('type', 191)->index();
$table->string('address', 191);
$table->string('meta', 191)->nullable()->default(null);
$table->boolean('low')->default(true)->index();
$table->boolean('medium')->default(true)->index();
$table->boolean('high')->default(true)->index();
@@ -16,9 +16,9 @@ public function up()
{
Schema::connection(config('eyewitness.eyewitness_database_connection'))->create('eyewitness_io_notification_severities', function (Blueprint $table) {
$table->increments('id');
$table->string('namespace')->index();
$table->string('notification')->index();
$table->string('severity');
$table->string('namespace', 191)->index();
$table->string('notification', 191)->index();
$table->string('severity', 191);
});
Severity::insert([
@@ -15,11 +15,11 @@ public function up()
{
Schema::connection(config('eyewitness.eyewitness_database_connection'))->create('eyewitness_io_notification_history', function (Blueprint $table) {
$table->increments('id');
$table->string('type')->index();
$table->string('type', 191)->index();
$table->boolean('isError');
$table->string('title');
$table->string('title', 191);
$table->text('description');
$table->string('severity');
$table->string('severity', 191);
$table->text('meta')->nullable()->default(null);
$table->boolean('acknowledged')->default(false);
$table->timestamp('created_at')->useCurrent();
@@ -15,13 +15,13 @@ public function up()
{
Schema::connection(config('eyewitness.eyewitness_database_connection'))->create('eyewitness_io_schedulers', function (Blueprint $table) {
$table->increments('id');
$table->string('schedule');
$table->string('command')->index();
$table->string('timezone')->nullable()->default(null);
$table->string('schedule', 191);
$table->string('command', 191)->index();
$table->string('timezone', 191)->nullable()->default(null);
$table->boolean('without_overlapping')->default(false);
$table->boolean('run_in_background')->default(false);
$table->boolean('on_one_server')->default(false);
$table->string('mutex')->unique()->index();
$table->string('mutex', 191)->unique()->index();
$table->boolean('healthy')->nullable()->default(null)->index();
$table->timestamp('next_run_due')->useCurrent()->index();
$table->timestamp('next_check_due')->useCurrent()->index();
@@ -15,9 +15,9 @@ public function up()
{
Schema::connection(config('eyewitness.eyewitness_database_connection'))->create('eyewitness_io_queues', function (Blueprint $table) {
$table->increments('id');
$table->string('connection');
$table->string('tube');
$table->string('driver');
$table->string('connection', 191);
$table->string('tube', 191);
$table->string('driver', 191);
$table->decimal('current_wait_time')->default(0);
$table->boolean('healthy')->nullable()->default(null)->index();
$table->boolean('alert_on_failed_job')->default(true);

0 comments on commit 2d7eebb

Please sign in to comment.