1: | <?php |
2: | |
3: | use Illuminate\Database\Migrations\Migration; |
4: | use Illuminate\Database\Schema\Blueprint; |
5: | use Illuminate\Database\Capsule\Manager as Capsule; |
6: | |
7: | class AlterMailServersTable extends Migration |
8: | { |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | public function up() |
15: | { |
16: | Capsule::schema()->table('mail_servers', function (Blueprint $table) { |
17: | $table->boolean('ExternalAccessImapUseSsl')->default(false); |
18: | $table->boolean('ExternalAccessPop3UseSsl')->default(false); |
19: | $table->boolean('ExternalAccessSmtpUseSsl')->default(false); |
20: | }); |
21: | } |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | |
28: | public function down() |
29: | { |
30: | Capsule::schema()->table('mail_servers', function (Blueprint $table) { |
31: | $table->dropColumn('ExternalAccessImapUseSsl'); |
32: | $table->dropColumn('ExternalAccessPop3UseSsl'); |
33: | $table->dropColumn('ExternalAccessSmtpUseSsl'); |
34: | }); |
35: | } |
36: | } |
37: | |