Skip to content

Commit 7351744

Browse files
committed
Fix password type. Add migration
1 parent 99b9adf commit 7351744

File tree

1 file changed

+32
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)