wp_directly
StaticStores directly data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | bigint(20) unsigned | NO |
| name | varchar(255) | NO |
| slug | varchar(100) | NO |
| type | varchar(50) | NO |
| status | varchar(20) | NO |
| settings | longtext | YES |
| created_at | datetime | NO |
| updated_at | datetime | NO |
| template_id | bigint(20) unsigned | NO |
| parent_id | bigint(20) unsigned | YES |
| element_type | varchar(100) | NO |
| settings | longtext | YES |
| sort_order | int(11) | NO |
| status | varchar(20) | NO |
| created_at | datetime | NO |
| updated_at | datetime | NO |
| name | varchar(255) | NO |
| type | varchar(50) | NO |
| category | varchar(100) | YES |
| thumbnail | varchar(500) | YES |
| content | longtext | NO |
| is_global | tinyint(1) | NO |
| created_at | datetime | NO |
CREATE TABLE Statement
CREATE TABLE $table_templates ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, slug varchar(100) NOT NULL, type varchar(50) NOT NULL DEFAULT 'page', status varchar(20) NOT NULL DEFAULT 'draft', settings longtext, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY slug (slug), KEY type (type), KEY status (status) ) $charset_collate;"; // Elements table (supports unlimited nesting via parent_id) $table_sections = DB::prefix() . 'instinctor_template_sections'; $sql_sections = "CREATE TABLE $table_sections ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, template_id bigint(20) unsigned NOT NULL, parent_id bigint(20) unsigned DEFAULT NULL, element_type varchar(100) NOT NULL, settings longtext, sort_order int(11) NOT NULL DEFAULT 0, status varchar(20) NOT NULL DEFAULT 'active', created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY template_id (template_id), KEY parent_id (parent_id), KEY sort_order (sort_order) ) $charset_collate;"; // Element templates library $table_element_templates = DB::prefix() . 'instinctor_element_templates'; $sql_element_templates = "CREATE TABLE $table_element_templates ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, type varchar(50) NOT NULL DEFAULT 'section', category varchar(100) DEFAULT NULL, thumbnail varchar(500) DEFAULT NULL, content longtext NOT NULL, is_global tinyint(1) NOT NULL DEFAULT 0, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY type (type), KEY category (category) ) $charset_collate;"; // In WP mode, dbDelta handles schema diffs gracefully. In standalone, that file // doesn't exist — just run CREATE TABLE IF NOT EXISTS directly (DB::get_charset_collate // emits the charset clause so the DDL is safe on both MySQL and MariaDB). if (defined('INSTINCTOR_ENV') && INSTINCTOR_ENV === 'standalone') { DB::query(str_replace('CREATE TABLE ', 'CREATE TABLE IF NOT EXISTS ', $sql_templates));Safe to delete?
If you have uninstalled Instinctor – Bookings, Store, Live Chat and SEO, this table is generally safe to remove. However, always back up your database first.
Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.
How to remove this table
DROP TABLE IF EXISTS `wp_directly`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.