forked from ProcessMaker/processmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpgradeMigration.php
More file actions
48 lines (43 loc) · 1.06 KB
/
UpgradeMigration.php
File metadata and controls
48 lines (43 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace ProcessMaker\Upgrades;
use Illuminate\Database\Migrations\Migration;
abstract class UpgradeMigration extends Migration
{
/**
* Run any validations/pre-run checks to ensure the environment, settings,
* packages installed, etc. are right correct to run this upgrade.
*
* Throw a \RuntimeException if the conditions are *NOT* correct for this
* upgrade migration to run. If this is not a required upgrade, then it
* will be skipped. Otherwise the exception thrown will be caught, noted,
* and will prevent the remaining migrations from continuing to run.
*
* Returning void or null denotes the checks were successful.
*
* @return void
*
* @throws \RuntimeException
*/
public function preflightChecks()
{
//
}
/**
* Run the upgrade migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse the upgrade migrations.
*
* @return void
*/
public function down()
{
//
}
}