Skip to content

Commit 34c74eb

Browse files
committed
add db migration
1 parent 2fd4116 commit 34c74eb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::table('wiki_daily_metrics', function (Blueprint $table) {
15+
$table->integer('daily_actions')->nullable();
16+
$table->integer('weekly_actions')->nullable();
17+
$table->integer('monthly_actions')->nullable();
18+
$table->integer('quarterly_actions')->nullable();
19+
});
20+
}
21+
22+
/**
23+
* Reverse the migrations.
24+
*/
25+
public function down(): void
26+
{
27+
Schema::table('wiki_daily_metric', function (Blueprint $table) {
28+
});
29+
}
30+
};

0 commit comments

Comments
 (0)