Server IP : 192.158.238.246 / Your IP : 3.138.202.226 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/task/7779/cwd/plugins/give/src/Framework/Migrations/Contracts/ |
Upload File : |
<?php namespace Give\Framework\Migrations\Contracts; use Give\Framework\Exceptions\Primitives\RuntimeException; /** * Class Migration * * Extend this class when create database migration. up and timestamp are required member functions * * @since 2.9.0 */ abstract class Migration { /** * Bootstrap migration logic. * * @since 2.9.0 */ abstract public function run(); /** * Return a unique identifier for the migration * * @return string */ public static function id() { throw new RuntimeException('A unique ID must be provided for the migration'); } /** * Return a Unix Timestamp for when the migration was created * * Example: strtotime( '2020-09-16 12:30:00') * * @since 2.9.0 * * @return int Unix timestamp for when the migration was created */ public static function timestamp() { throw new RuntimeException('This method must be overridden to return a valid unix timestamp'); } /** * Return migration title * * @since 2.10.0 * * @return string */ public static function title() { return static::id(); } /** * Return migration source * * @since 2.10.0 * * @return string */ public static function source() { return esc_html__('GiveWP Core', 'give'); } }