Skip to content

Commit 5328cfd

Browse files
authored
2021_02_23_161404_UpdateDaemonSftp.php
Migration File for DaemonSFTP
1 parent ef76f3c commit 5328cfd

File tree

1 file changed

+33
-0
lines changed
  • database/migrations/<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class MakingDaemonSftpUnsigned extends Migration {/** * Run the migrations. * * @return void */public function up() { Schema::table('nodes', function (Blueprint $table) { $table->unsignedSmallInteger('daemonSFTP')->default(2022)->change(); }); }

1 file changed

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

0 commit comments

Comments
 (0)