Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
dronishness
/
newtest
/
wp-content
/
plugins
/
depicter
/
vendor
/
typerocket
/
core
/
src
/
Database
:
Migration.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace TypeRocket\Database; abstract class Migration { /** @var \wpdb */ protected $database; protected $prefix; public function __construct(\wpdb $database) { $this->database = $database; $this->prefix = $database->prefix; } public function run($type) { if($type == 'up') { $this->up(); } else { $this->down(); } } abstract function up(); abstract function down(); }