Skip to content

Commit ffbf619

Browse files
committed
Drop bugtrackerfileurl column
1 parent b60cbc9 commit ffbf619

File tree

6 files changed

+24
-12
lines changed

6 files changed

+24
-12
lines changed

app/Models/Project.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* @property string $homeurl
1717
* @property string $cvsurl
1818
* @property string $bugtrackerurl
19-
* @property string $bugtrackerfileurl
2019
* @property string $bugtrackernewissueurl
2120
* @property string $bugtrackertype
2221
* @property string $documentationurl
@@ -64,7 +63,6 @@ class Project extends Model
6463
'homeurl',
6564
'cvsurl',
6665
'bugtrackerurl',
67-
'bugtrackerfileurl',
6866
'bugtrackernewissueurl',
6967
'bugtrackertype',
7068
'documentationurl',

app/cdash/app/Model/Project.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class Project
5555
public $CvsUrl;
5656
public $DocumentationUrl;
5757
public $BugTrackerUrl;
58-
public $BugTrackerFileUrl;
5958
public $BugTrackerNewIssueUrl;
6059
public $BugTrackerType;
6160
public $ImageId;
@@ -261,7 +260,6 @@ public function Save(): bool
261260
'cvsurl' => $this->CvsUrl ?? '',
262261
'documentationurl' => $this->DocumentationUrl ?? '',
263262
'bugtrackerurl' => $this->BugTrackerUrl ?? '',
264-
'bugtrackerfileurl' => $this->BugTrackerFileUrl ?? '',
265263
'bugtrackernewissueurl' => $this->BugTrackerNewIssueUrl ?? '',
266264
'bugtrackertype' => $this->BugTrackerType ?? '',
267265
'public' => (int) $this->Public,
@@ -353,7 +351,6 @@ public function Fill(): void
353351
$this->CvsUrl = $project->cvsurl;
354352
$this->DocumentationUrl = $project->documentationurl;
355353
$this->BugTrackerUrl = $project->bugtrackerurl;
356-
$this->BugTrackerFileUrl = $project->bugtrackerfileurl;
357354
$this->BugTrackerNewIssueUrl = $project->bugtrackernewissueurl;
358355
$this->BugTrackerType = $project->bugtrackertype;
359356
$this->ImageId = $project->imageid;

app/cdash/tests/test_compressedtest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public function testSubmissionCompressedTest()
2222
'Description' => 'Project compression example',
2323
'CvsUrl' => 'public.kitware.com/cgi-bin/viewcvs.cgi/?cvsroot=TestCompressionExample',
2424
'CvsViewerType' => 'github',
25-
'BugTrackerFileUrl' => 'http://public.kitware.com/Bug/view.php?id=',
2625
];
2726
$this->createProject($settings);
2827

app/cdash/tests/test_updateonlyuserstats.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function testSetup()
4242
'Description' => 'CDash',
4343
'CvsUrl' => 'github.com/Kitware/CDash',
4444
'CvsViewerType' => 'github',
45-
'BugTrackerFileUrl' => 'http://public.kitware.com/Bug/view.php?id=',
4645
'repositories' => [[
4746
'url' => 'https://github.com/Kitware/CDash',
4847
'branch' => 'master',
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Support\Facades\Schema;
5+
6+
return new class extends Migration {
7+
/**
8+
* Run the migrations.
9+
*/
10+
public function up(): void
11+
{
12+
if (Schema::hasTable('project')) {
13+
Schema::dropColumns('project', 'bugtrackerfileurl');
14+
}
15+
}
16+
17+
/**
18+
* Reverse the migrations.
19+
*/
20+
public function down(): void
21+
{
22+
// This migration is irreversible
23+
}
24+
};

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9857,11 +9857,6 @@ parameters:
98579857
count: 1
98589858
path: app/cdash/app/Model/Project.php
98599859

9860-
-
9861-
message: "#^Property CDash\\\\Model\\\\Project\\:\\:\\$BugTrackerFileUrl has no type specified\\.$#"
9862-
count: 1
9863-
path: app/cdash/app/Model/Project.php
9864-
98659860
-
98669861
message: "#^Property CDash\\\\Model\\\\Project\\:\\:\\$BugTrackerNewIssueUrl has no type specified\\.$#"
98679862
count: 1

0 commit comments

Comments
 (0)