Skip to content

Commit 7e4899e

Browse files
authored
Merge pull request #55 from backstagephp/feature/longText-mail-events-link
Add longText migration
2 parents ad05f17 + 3a613ac commit 7e4899e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
public function up()
10+
{
11+
Schema::table(config('mails.database.tables.events', 'mail_events'), function (Blueprint $table) {
12+
$table->longText('link')->nullable()->change();
13+
});
14+
15+
}
16+
17+
public function down()
18+
{
19+
Schema::table(config('mails.database.tables.events', 'mail_events'), function (Blueprint $table) {
20+
$table->string('link')->nullable()->change();
21+
});
22+
}
23+
};

0 commit comments

Comments
 (0)