tethys/database/migrations/2022_08_04_135153_change_depth_coverage.php
Arno Kaimbacher dfe76d1a36 - composer updates for 3rd party libraries
- LoginController.php: logout to new frontend
- db migration file for changing smallInteger to integer for: elevation_min, elevation_max, elevation_absolut, depth_min, depth_max, depth_absolut
2022-08-04 15:03:05 +02:00

43 lines
1.4 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeDepthCoverage extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('coverage', function (Blueprint $table) {
$table->integer('elevation_min')->nullable()->change();
$table->integer('elevation_max')->nullable()->change();
$table->integer('elevation_absolut')->nullable()->change();
$table->integer('depth_min')->nullable()->change();
$table->integer('depth_max')->nullable()->change();
$table->integer('depth_absolut')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('coverage', function (Blueprint $table) {
$table->smallInteger('elevation_min')->nullable()->change();
$table->smallInteger('elevation_max')->nullable()->change();
$table->smallInteger('elevation_absolut')->nullable()->change();
$table->smallInteger('depth_min')->nullable()->change();
$table->smallInteger('depth_max')->nullable()->change();
$table->smallInteger('depth_absolut')->nullable()->change();
});
}
}