File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,19 @@ public function isTransactional() : bool
60
60
return true ;
61
61
}
62
62
63
+ /**
64
+ * Description of this migration.
65
+ *
66
+ * Describe what this migration does in simple terms. This information is displayed when you view the list of migrations.
67
+ */
63
68
public function getDescription () : string
64
69
{
65
70
return '' ;
66
71
}
67
72
73
+ /**
74
+ * Warn with a message if some condition is met.
75
+ */
68
76
public function warnIf (bool $ condition , string $ message = 'Unknown Reason ' ) : void
69
77
{
70
78
if (! $ condition ) {
@@ -155,6 +163,11 @@ public function getSql() : array
155
163
return $ this ->plannedSql ;
156
164
}
157
165
166
+ /**
167
+ * Write some debug information to the console.
168
+ *
169
+ * Debug information is written with debug().
170
+ */
158
171
protected function write (string $ message ) : void
159
172
{
160
173
$ this ->logger ->notice ($ message , ['migration ' => $ this ]);
You can’t perform that action at this time.
0 commit comments