wp-all-export
Last commit date
actions
12 years ago
classes
12 years ago
config
12 years ago
controllers
12 years ago
filters
12 years ago
helpers
12 years ago
history
12 years ago
i18n
12 years ago
libraries
12 years ago
models
12 years ago
sessions
12 years ago
shortcodes
12 years ago
static
12 years ago
views
12 years ago
banner-772x250.png
12 years ago
plugin.php
12 years ago
readme.txt
12 years ago
schema.php
12 years ago
screenshot-1.png
12 years ago
screenshot-2.png
12 years ago
schema.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin database schema |
| 4 | * WARNING: |
| 5 | * dbDelta() doesn't like empty lines in schema string, so don't put them there; |
| 6 | * WPDB doesn't like NULL values so better not to have them in the tables; |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * The database character collate. |
| 11 | * @var string |
| 12 | * @global string |
| 13 | * @name $charset_collate |
| 14 | */ |
| 15 | $charset_collate = ''; |
| 16 | |
| 17 | // Declare these as global in case schema.php is included from a function. |
| 18 | global $wpdb, $plugin_queries; |
| 19 | |
| 20 | if ( ! empty($wpdb->charset)) |
| 21 | $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; |
| 22 | if ( ! empty($wpdb->collate)) |
| 23 | $charset_collate .= " COLLATE $wpdb->collate"; |
| 24 | |
| 25 | $table_prefix = PMXE_Plugin::getInstance()->getTablePrefix(); |
| 26 | |
| 27 | $plugin_queries = false; |
| 28 |