Use decimal on metric points

This commit is contained in:
Joseph Cohen
2015-03-12 18:49:45 -06:00
parent cd53dc36f5
commit dfbdd539b0
4 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ class CreateMetricPointsTable extends Migration
Schema::create('metric_points', function (Blueprint $table) {
$table->increments('id');
$table->integer('metric_id');
$table->integer('value');
$table->decimal('value', 10, 3);
$table->timestamps();
$table->index('metric_id');

View File

@@ -18,7 +18,7 @@ class CreateMetricsTable extends Migration
$table->string('name');
$table->string('suffix');
$table->text('description');
$table->integer('default_value');
$table->decimal('default_value', 10, 3);
$table->boolean('display_chart')->default(1);
$table->timestamps();