Skip to content

Commit

Permalink
Drop bugtrackerfileurl column
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjallen committed Mar 22, 2024
1 parent b60cbc9 commit 02cb88e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
2 changes: 0 additions & 2 deletions app/Models/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @property string $homeurl
* @property string $cvsurl
* @property string $bugtrackerurl
* @property string $bugtrackerfileurl
* @property string $bugtrackernewissueurl
* @property string $bugtrackertype
* @property string $documentationurl
Expand Down Expand Up @@ -64,7 +63,6 @@ class Project extends Model
'homeurl',
'cvsurl',
'bugtrackerurl',
'bugtrackerfileurl',
'bugtrackernewissueurl',
'bugtrackertype',
'documentationurl',
Expand Down
3 changes: 0 additions & 3 deletions app/cdash/app/Model/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class Project
public $CvsUrl;
public $DocumentationUrl;
public $BugTrackerUrl;
public $BugTrackerFileUrl;
public $BugTrackerNewIssueUrl;
public $BugTrackerType;
public $ImageId;
Expand Down Expand Up @@ -261,7 +260,6 @@ public function Save(): bool
'cvsurl' => $this->CvsUrl ?? '',
'documentationurl' => $this->DocumentationUrl ?? '',
'bugtrackerurl' => $this->BugTrackerUrl ?? '',
'bugtrackerfileurl' => $this->BugTrackerFileUrl ?? '',
'bugtrackernewissueurl' => $this->BugTrackerNewIssueUrl ?? '',
'bugtrackertype' => $this->BugTrackerType ?? '',
'public' => (int) $this->Public,
Expand Down Expand Up @@ -353,7 +351,6 @@ public function Fill(): void
$this->CvsUrl = $project->cvsurl;
$this->DocumentationUrl = $project->documentationurl;
$this->BugTrackerUrl = $project->bugtrackerurl;
$this->BugTrackerFileUrl = $project->bugtrackerfileurl;
$this->BugTrackerNewIssueUrl = $project->bugtrackernewissueurl;
$this->BugTrackerType = $project->bugtrackertype;
$this->ImageId = $project->imageid;
Expand Down
1 change: 0 additions & 1 deletion app/cdash/tests/test_compressedtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function testSubmissionCompressedTest()
'Description' => 'Project compression example',
'CvsUrl' => 'public.kitware.com/cgi-bin/viewcvs.cgi/?cvsroot=TestCompressionExample',
'CvsViewerType' => 'github',
'BugTrackerFileUrl' => 'http://public.kitware.com/Bug/view.php?id=',
];
$this->createProject($settings);

Expand Down
1 change: 0 additions & 1 deletion app/cdash/tests/test_updateonlyuserstats.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function testSetup()
'Description' => 'CDash',
'CvsUrl' => 'github.com/Kitware/CDash',
'CvsViewerType' => 'github',
'BugTrackerFileUrl' => 'http://public.kitware.com/Bug/view.php?id=',
'repositories' => [[
'url' => 'https://github.com/Kitware/CDash',
'branch' => 'master',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
if (Schema::hasTable('project')) {
Schema::dropColumns('project', 'bugtrackerfileurl');
}
}

/**
* Reverse the migrations.
*/
public function down(): void
{
// This migration is irreversible
}
};

0 comments on commit 02cb88e

Please sign in to comment.