40 lines
904 B
PHP
40 lines
904 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateStoresTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('stores', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->string('name');
|
|
$table->string('street');
|
|
$table->string('city');
|
|
$table->string('voivodeship');
|
|
$table->string('latitude');
|
|
$table->string('longitude');
|
|
$table->string('concern');
|
|
$table->timestamps();
|
|
$table->engine = 'InnoDB';
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('stores');
|
|
}
|
|
}
|