Skip to content

Commit 6a61bc6

Browse files
authored
release v4.6.4 (#1661)
1 parent f3c43c6 commit 6a61bc6

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Support\Facades\DB;
5+
6+
return new class() extends Migration {
7+
/**
8+
* Run the migrations.
9+
*
10+
* @return void
11+
*/
12+
public function up(): void
13+
{
14+
DB::table('configs')->where('key', 'version')->update(['value' => '040604']);
15+
}
16+
17+
/**
18+
* Reverse the migrations.
19+
*
20+
* @return void
21+
*/
22+
public function down(): void
23+
{
24+
DB::table('configs')->where('key', 'version')->update(['value' => '040603']);
25+
}
26+
};

scripts/gen_release.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ function does_migration_exists(string $version): void
110110
$name_candidate = 'bump_version' . $version;
111111
$migrations = array_slice(scandir('database/migrations'), 2);
112112
foreach ($migrations as $migration) {
113+
if (is_dir('database/migrations/' . $migration)) {
114+
continue;
115+
}
116+
113117
// given 2020_04_22_155712_bump_version040002.php we retrieve bump_version040002
114118
$name = explode('_', $migration, 5);
115119
$name = substr($name[4], 0, -4);

version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.6.3
1+
4.6.4

0 commit comments

Comments
 (0)