Skip to content
Snippets Groups Projects
Commit 48247436 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Die failed-jobs Tabelle wird nun bei jedem Update in eine frische Datenbank migriert.

parent 6b41d846
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -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
<?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');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment