File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * Copyright (C) 2009 - 2021 Internet Neutral Exchange Association Company Limited By Guarantee.
5+ * All Rights Reserved.
6+ *
7+ * This file is part of IXP Manager.
8+ *
9+ * IXP Manager is free software: you can redistribute it and/or modify it
10+ * under the terms of the GNU General Public License as published by the Free
11+ * Software Foundation, version v2.0 of the License.
12+ *
13+ * IXP Manager is distributed in the hope that it will be useful, but WITHOUT
14+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16+ * more details.
17+ *
18+ * You should have received a copy of the GNU General Public License v2.0
19+ * along with IXP Manager. If not, see:
20+ *
21+ * http://www.gnu.org/licenses/gpl-2.0.html
22+ */
23+
24+ use Illuminate \Database \Migrations \Migration ;
25+ use Illuminate \Database \Schema \Blueprint ;
26+ use Illuminate \Support \Facades \Schema ;
27+
28+ class UpdatePpPrefixSize extends Migration
29+ {
30+ /**
31+ * Run the migrations.
32+ *
33+ * @return void
34+ */
35+ public function up ()
36+ {
37+ Schema::table ('patch_panel ' , function (Blueprint $ table ) {
38+ $ table ->string ('port_prefix ' , 20 )->change ();
39+ });
40+ }
41+
42+ /**
43+ * Reverse the migrations.
44+ *
45+ * @return void
46+ */
47+ public function down ()
48+ {
49+ Schema::table ('patch_panel ' , function (Blueprint $ table ) {
50+ $ table ->string ('port_prefix ' , 10 )->change ();
51+ });
52+ }
53+ }
You can’t perform that action at this time.
0 commit comments