integration done
This commit is contained in:
parent
f06ede20d5
commit
76d386ad95
|
@ -47,7 +47,7 @@ return [
|
|||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', 'db_mysql'),
|
||||
'port' => env('DB_PORT', '3306'),
|
||||
'database' => env('DB_DATABASE', 'unioil-database'),
|
||||
'database' => env('DB_DATABASE', 'armie-database'),
|
||||
'username' => env('DB_USERNAME', 'rootuser'),
|
||||
'password' => env('DB_PASSWORD', 'password'),
|
||||
'unix_socket' => env('DB_SOCKET', ''),
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('sessions', function (Blueprint $table) {
|
||||
$table->string('id')->primary();
|
||||
$table->foreignId('user_id')->nullable()->index();
|
||||
$table->string('ip_address', 45)->nullable();
|
||||
$table->text('user_agent')->nullable();
|
||||
$table->longText('payload');
|
||||
$table->integer('last_activity')->index();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sessions');
|
||||
}
|
||||
};
|
|
@ -24,11 +24,11 @@ services:
|
|||
retries: 10
|
||||
networks:
|
||||
- frontend-network
|
||||
- unioil-mobile-api_backend-network
|
||||
- unioil-loyalty-app_backend-network
|
||||
environment:
|
||||
- DB_HOST=db_mysql
|
||||
- DB_PORT=3306
|
||||
- DB_DATABASE=unioil-database
|
||||
- DB_DATABASE=armie-database
|
||||
- DB_USERNAME=rootuser
|
||||
- DB_PASSWORD=password
|
||||
- CACHE_DRIVER=file
|
||||
|
@ -55,10 +55,10 @@ services:
|
|||
retries: 5
|
||||
networks:
|
||||
- frontend-network
|
||||
- unioil-mobile-api_backend-network
|
||||
- unioil-loyalty-app_backend-network
|
||||
|
||||
networks:
|
||||
frontend-network:
|
||||
driver: bridge
|
||||
unioil-mobile-api_backend-network:
|
||||
unioil-loyalty-app_backend-network:
|
||||
external: true
|
||||
|
|
Loading…
Reference in New Issue