-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMigration001.php
More file actions
32 lines (31 loc) · 920 Bytes
/
Migration001.php
File metadata and controls
32 lines (31 loc) · 920 Bytes
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
<?php
namespace App\Database\Migrations\MultiDownErr;
use WebFiori\Database\Database;
use WebFiori\Database\migration\AbstractMigration;
/**
* A database migration class.
*/
class Migration001 extends AbstractMigration {
/**
* Creates new instance of the class.
*/
public function __construct() {
parent::__construct('Second one', 1);
}
/**
* Performs the action that will apply the migration.
*
* @param Database $schema The database at which the migration will be applied to.
*/
public function up(Database $schema) {
//TODO: Implement the action which will apply the migration to database.
}
/**
* Performs the action that will revert back the migration.
*
* @param Database $schema The database at which the migration will be applied to.
*/
public function down(Database $schema) {
$schema->do();
}
}