diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0bb49ffb067e72cf7958fa454e0f77bd0d2db7aa..f4129f3e2094564f85959686f85516a76cdfef2f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,11 +29,12 @@ update(144.76.113.134): - chmod -R 777 bootstrap/cache - npm install - ./gulpbuild.sh + - touch database/metager.sqlite + - php artisan migrate --force - if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi - cd ~/ - while [ -d ~/MetaGer ]; do rm -rf ~/MetaGer;done - mv MetaGer_neu MetaGer - - php ~/MetaGer/artisan migrate --force - sudo pkill --signal SIGHUP supervisord - php ~/MetaGer/artisan up @@ -68,11 +69,12 @@ update(metager2): - chmod -R 777 bootstrap/cache - npm install - ./gulpbuild.sh + - touch database/metager.sqlite + - php artisan migrate --force - if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi - cd ~/ - while [ -d ~/MetaGer ]; do rm -rf ~/MetaGer;done - mv MetaGer_neu MetaGer - - php ~/MetaGer/artisan migrate --force - sudo pkill --signal SIGHUP supervisord - php ~/MetaGer/artisan up @@ -107,10 +109,11 @@ update(metager3.de): - chmod -R 777 bootstrap/cache - npm install - ./gulpbuild.sh + - touch database/metager.sqlite + - php artisan migrate --force - if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi - cd ~/ - while [ -d ~/MetaGer ]; do rm -rf ~/MetaGer;done - mv MetaGer_neu MetaGer - - php ~/MetaGer/artisan migrate --force - sudo pkill --signal SIGHUP supervisord - php ~/MetaGer/artisan up \ No newline at end of file diff --git a/database/migrations/2018_02_22_122047_create_failed_jobs_table.php b/database/migrations/2018_02_22_122047_create_failed_jobs_table.php new file mode 100644 index 0000000000000000000000000000000000000000..d432dff085f78b868a82c7264ccc960b2d39155e --- /dev/null +++ b/database/migrations/2018_02_22_122047_create_failed_jobs_table.php @@ -0,0 +1,35 @@ +<?php + +use Illuminate\Support\Facades\Schema; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class CreateFailedJobsTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('failed_jobs', function (Blueprint $table) { + $table->bigIncrements('id'); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('failed_jobs'); + } +}