Skip to content

Commit

Permalink
release v4.6.4 (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Dec 25, 2022
1 parent f3c43c6 commit 6a61bc6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
26 changes: 26 additions & 0 deletions database/migrations/2022_12_25_103052_bump_version040604.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

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

return new class() extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
DB::table('configs')->where('key', 'version')->update(['value' => '040604']);
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
DB::table('configs')->where('key', 'version')->update(['value' => '040603']);
}
};
4 changes: 4 additions & 0 deletions scripts/gen_release.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ function does_migration_exists(string $version): void
$name_candidate = 'bump_version' . $version;
$migrations = array_slice(scandir('database/migrations'), 2);
foreach ($migrations as $migration) {
if (is_dir('database/migrations/' . $migration)) {
continue;
}

// given 2020_04_22_155712_bump_version040002.php we retrieve bump_version040002
$name = explode('_', $migration, 5);
$name = substr($name[4], 0, -4);
Expand Down
2 changes: 1 addition & 1 deletion version.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.6.3
4.6.4

0 comments on commit 6a61bc6

Please sign in to comment.