Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
7ada7548
Commit
7ada7548
authored
Feb 22, 2018
by
Dominik Hebeler
Browse files
Die failed-jobs Tabelle wird nun bei jedem Update in eine frische Datenbank migriert.
parent
17c00a2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7ada7548
...
...
@@ -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
database/migrations/2018_02_22_122047_create_failed_jobs_table.php
0 → 100644
View file @
7ada7548
<?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'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment