class Notification_SchemaHandles database table creation and upgrades for notifications.
class final
- Full name
Kernowdev\Clanbite\Extensions\Notification\Notification_Schema
Constants
| Name | Value | Description |
|---|---|---|
OPTION_DB_VERSION | 'clanbite_notifications_db_version' | |
DB_VERSION | '1.0.0' |
Methods
create_tables()Create or upgrade the notifications table.drop_tables()Drop the notifications table (uninstall).ensure_table_exists()Ensure the notifications table exists (handles missing table when the DB version option is stale).maybe_upgrade()Check and upgrade if needed.table_name()Get the notifications table name.
Defined in inc/extensions/notifications/class-notification-schema.php