prefix), not the network base prefix. * Explicitly set to false so multisite intent is declared in code, not * inherited from BerlinDB library defaults (SAC-02 / Constitution §II). * * @var bool */ protected $global = false; /** * Singleton instance. * * @var AcrossAI_Abilities_Table|null */ protected static $instance = null; /** * Get the singleton instance of this table. * * @since 0.1.0 * @return AcrossAI_Abilities_Table */ public static function instance(): self { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Create or upgrade the table. * * Overrides the parent to handle the "phantom version" case: if the stored * db_version_key option exists but the physical table was manually dropped, * BerlinDB's needs_upgrade() would return false and skip installation. * Clearing the option first forces a fresh install on the next run. * * @since 0.1.0 * @return void */ public function maybe_upgrade(): void { if ( ! $this->exists() ) { delete_option( $this->db_version_key ); } parent::maybe_upgrade(); } }