mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
feat[docker]: create session table migration if session driver is set to database (#9587)
This commit is contained in:
parent
9eea46adef
commit
c3d75d3be3
|
@ -45,6 +45,11 @@ then
|
|||
cp -a /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
||||
fi
|
||||
|
||||
if [ "${SESSION_DRIVER}" == "database" ]
|
||||
then
|
||||
cp -a /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Console/stubs/database.stub /var/www/html/database/migrations/2021_05_06_0000_create_sessions_table.php
|
||||
fi
|
||||
|
||||
php artisan migrate --force
|
||||
php artisan config:clear
|
||||
php artisan config:cache
|
||||
|
|
|
@ -54,6 +54,11 @@ then
|
|||
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
||||
fi
|
||||
|
||||
if [ $SESSION_DRIVER = "database" ]
|
||||
then
|
||||
cp -ax /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Console/stubs/database.stub /var/www/html/database/migrations/2021_05_06_0000_create_sessions_table.php
|
||||
fi
|
||||
|
||||
php artisan migrate --force
|
||||
php artisan config:clear
|
||||
php artisan config:cache
|
||||
|
|
Loading…
Reference in a new issue