File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace EE \Migration ;
44
5+ use Symfony \Component \Filesystem \Filesystem ;
6+
57abstract class Base {
68
7- public $ status = 'incomplete ' ;
9+ public $ status = 'incomplete ' ;
10+ protected $ is_first_execution ;
11+ protected $ skip_this_migration ;
12+ protected $ backup_dir ;
13+ protected $ backup_file ;
14+ protected $ fs ;
15+
16+ public function __construct () {
17+ $ this ->fs = new Filesystem ();
18+ $ this ->skip_this_migration = false ;
19+ $ this ->is_first_execution = ! \EE \Model \Option::get ( 'version ' );
20+ $ this ->backup_dir = EE_BACKUP_DIR ;
21+ $ this ->fs ->mkdir ( $ this ->backup_dir );
22+ }
23+
24+ abstract public function up ();
825
9- abstract public function up ();
10- abstract public function down ();
11- }
26+ abstract public function down ();
27+ }
You can’t perform that action at this time.
0 commit comments