-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
dailyupdatefile
table (#2703)
The `dailyupdatefile` table is currently only used to display a list of users who have committed to the project recently but don't have a CDash account. As we rethink what it means for CDash to be integrated with version control systems, it seems unlikely that we will want CDash to be responsible for interacting with version control systems directly, instead relying upon CTest to include the necessary information in the Update step.
- Loading branch information
1 parent
7a679f4
commit ea98271
Showing
8 changed files
with
35 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -414,16 +414,6 @@ public function testBuildRemovalWorksAsExpected(): void | |
'status' => 0, | ||
'revision' => 'DEADBEEF', | ||
]); | ||
DB::table('dailyupdatefile')->insert([ | ||
'dailyupdateid' => $dailyupdate_id, | ||
'filename' => 'test_removebuilds.php', | ||
'checkindate' => $time, | ||
'author' => 'CDash', | ||
'email' => '[email protected]', | ||
'log' => 'test_removebuilds.php', | ||
'revision' => 'DEADBEEF', | ||
'priorrevision' => '00000000', | ||
]); | ||
$image_id = DB::table('image')->insertGetId([ | ||
'img' => 'asdf', | ||
'extension' => 'png', | ||
|
@@ -455,7 +445,6 @@ public function testBuildRemovalWorksAsExpected(): void | |
$this->verify('configure', 'id', '=', $configure_id, 0, $extra_msg); | ||
$this->verify('coveragefile', 'id', '=', $coveragefile_id, 0, $extra_msg); | ||
$this->verify('dailyupdate', 'id', '=', $dailyupdate_id, 0, $extra_msg); | ||
$this->verify('dailyupdatefile', 'dailyupdateid', '=', $dailyupdate_id, 0, $extra_msg); | ||
$this->verify('image', 'id', '=', $image_id, 0, $extra_msg); | ||
$this->verify('note', 'id', '=', $note_id, 0, $extra_msg); | ||
$this->verify('testoutput', 'id', '=', $testoutput_id, 0, $extra_msg); | ||
|
29 changes: 29 additions & 0 deletions
29
database/migrations/2025_02_06_220212_drop_dailyupdatefile_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\DB; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration { | ||
public function up(): void | ||
{ | ||
Schema::dropIfExists('dailyupdatefile'); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
if (!Schema::hasTable('dailyupdatefile')) { | ||
Schema::create('dailyupdatefile', function (Blueprint $table) { | ||
$table->integer('dailyupdateid')->default(0)->index(); | ||
$table->string('filename')->default(''); | ||
$table->timestamp('checkindate')->default(DB::raw('CURRENT_TIMESTAMP')); | ||
$table->string('author')->default('')->index(); | ||
$table->string('email')->default(''); | ||
$table->text('log'); | ||
$table->string('revision', 60)->default('0'); | ||
$table->string('priorrevision', 60)->default('0'); | ||
}); | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters