Files
investbrain/database/migrations/2021_02_25_041236_create_dividends_table.php
T

35 lines
711 B
PHP
Raw Normal View History

2024-08-01 13:53:10 -05:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2024-08-03 14:21:29 -05:00
class CreateDividendsTable extends Migration
2024-08-01 13:53:10 -05:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2024-08-03 14:21:29 -05:00
Schema::create('dividends', function (Blueprint $table) {
2024-08-01 13:53:10 -05:00
$table->id();
2024-08-03 14:21:29 -05:00
$table->date('date');
$table->string('symbol');
$table->float('dividend_amount', 12, 4);
2024-08-01 13:53:10 -05:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2024-08-03 14:21:29 -05:00
Schema::dropIfExists('dividends');
2024-08-01 13:53:10 -05:00
}
2024-08-03 14:21:29 -05:00
}