v0.1.0
This commit is contained in:
19
provm/common/Service/Migrator.php
Normal file
19
provm/common/Service/Migrator.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace ProVM\Common\Service;
|
||||
|
||||
class Migrator {
|
||||
protected $schema_filename;
|
||||
protected $migrations_folder;
|
||||
protected $seeds_folder;
|
||||
public function __construct(string $schema_filename, string $migrations_folder, string $seeds_folder) {
|
||||
$this->schema_filename = $schema_filename;
|
||||
$this->migrations_folder = $migrations_folder;
|
||||
$this->seeds_folder = $seeds_folder;
|
||||
}
|
||||
protected $schema;
|
||||
public function schema() {
|
||||
if ($this->schema === null) {
|
||||
$file = new \File($this->schema_filename);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user