setenv, new migration for table booking_rooms, key for bookings table

This commit is contained in:
Torsten 2022-04-20 08:40:56 +02:00
parent 11a05664df
commit 6f6114c55c
7 changed files with 15099 additions and 1007 deletions

3023
motorradig/composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBookingRooms extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_rooms', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->integer('tour_id');
$table->integer('capacity');
$table->timestamps();
});
Schema::table('bookings', function (Blueprint $table) {
$table->integer('room_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_rooms');
}
}

File diff suppressed because it is too large Load diff

3
motorradig/setenv.sh Normal file
View file

@ -0,0 +1,3 @@
alias phpunit="docker-compose exec app vendor/bin/phpunit"
alias artisan="docker-compose exec app php artisan"
alias composer="docker-compose exec app composer"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long