File tree Expand file tree Collapse file tree 5 files changed +19
-7
lines changed Expand file tree Collapse file tree 5 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 24
24
with :
25
25
php-version : 8.4
26
26
coverage : none
27
-
27
+ - name : Login to Docker Hub
28
+ uses : docker/login-action@v3
29
+ with :
30
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
31
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
28
32
- name : Install dependencies
29
33
run : composer install --prefer-dist --no-interaction --no-suggest
30
34
Original file line number Diff line number Diff line change 16
16
with :
17
17
path : ~/.composer/cache/files
18
18
key : dependencies-code-checks
19
-
19
+ - name : Login to Docker Hub
20
+ uses : docker/login-action@v3
21
+ with :
22
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
23
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
20
24
- name : Setup PHP
21
25
uses : shivammathur/setup-php@v2
22
26
with :
Original file line number Diff line number Diff line change 48
48
with :
49
49
path : ~/.composer/cache/files
50
50
key : dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
51
-
51
+ - name : Login to Docker Hub
52
+ uses : docker/login-action@v3
53
+ with :
54
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
55
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
52
56
- name : Setup PHP
53
57
uses : shivammathur/setup-php@v2
54
58
with :
Original file line number Diff line number Diff line change 2
2
3
3
namespace Prometheus \Exception ;
4
4
5
- use Exception ;
5
+ use RuntimeException ;
6
6
7
7
/**
8
8
* Exception thrown if a metric can't be found in the CollectorRegistry.
9
9
*/
10
- class MetricNotFoundException extends Exception
10
+ class MetricNotFoundException extends RuntimeException
11
11
{
12
12
}
Original file line number Diff line number Diff line change @@ -641,7 +641,7 @@ protected function createTables(): void
641
641
`time` {$ timestamp_type } NOT NULL
642
642
);
643
643
SQL ;
644
- $ sqlIndex = "CREATE INDEX `name` ON ` {$ this ->prefix }_summaries`(`name`); " ;
644
+ $ sqlIndex = "CREATE INDEX IF NOT EXISTS `name` ON ` {$ this ->prefix }_summaries`(`name`); " ;
645
645
break ;
646
646
647
647
case 'mysql ' :
@@ -667,7 +667,7 @@ protected function createTables(): void
667
667
"time" {$ timestamp_type } NOT NULL
668
668
);
669
669
SQL ;
670
- $ sqlIndex = "CREATE INDEX \"name \" ON \"{$ this ->prefix }_summaries \" ( \"name \"); " ;
670
+ $ sqlIndex = "CREATE INDEX IF NOT EXISTS \"name \" ON \"{$ this ->prefix }_summaries \" ( \"name \"); " ;
671
671
break ;
672
672
}
673
673
You can’t perform that action at this time.
0 commit comments