| 1 |
<?php |
| 2 |
/** |
| 3 |
* Base class for all Texty DB migrations. |
| 4 |
* |
| 5 |
* @package Texty\Migrations |
| 6 |
* @since 2.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Texty\Migrations; |
| 10 |
|
| 11 |
use WeDevs\WPKit\Migration\BaseMigration; |
| 12 |
|
| 13 |
defined( 'ABSPATH' ) || exit; |
| 14 |
|
| 15 |
/** |
| 16 |
* Base class for all Texty DB migrations. |
| 17 |
* |
| 18 |
* Sets the option key wp-kit reads/writes to track schema version. Schema |
| 19 |
* introspection helpers live on `Texty\Migrations\Schema` so they don't get |
| 20 |
* picked up by `BaseMigration::run()`'s public-static auto-discovery. |
| 21 |
*/ |
| 22 |
abstract class TextyMigration extends BaseMigration { |
| 23 |
|
| 24 |
/** |
| 25 |
* The option key used to store the DB version. |
| 26 |
* |
| 27 |
* @var string |
| 28 |
*/ |
| 29 |
protected static string $db_version_key = 'texty_db_version'; |
| 30 |
} |
| 31 |
|