Skip to content

Commit

Permalink
Fix Database Length (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthwang authored May 11, 2024
1 parent 7fb4c4b commit 4086089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/classes/class-wp-json-exporter-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private static function create_visits_table(): void {
$charset_collate = $wpdb->get_charset_collate();
$sql = "CREATE TABLE $table_name (
id mediumint(9) NOT NULL AUTO_INCREMENT,
route varchar(255) NOT NULL,
route varchar(191) NOT NULL,
count bigint(20) DEFAULT 0 NOT NULL,
created_at datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL,
Expand Down
4 changes: 2 additions & 2 deletions wp-json-exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WordPress JSON Exporter
* Plugin URI: https://github.com/vthwang/wp-json-exporter
* Description: Customized for blog systems, this plugin enables the export of your WordPress posts and projects in JSON format.
* Version: 1.0.3
* Version: 1.0.4
* Requires at least: 6.5
* Text Domain: wp-json-exporter
* Author: Vincent Wang
Expand All @@ -19,7 +19,7 @@
}

if ( ! class_exists( 'WPJsonExporter' ) ) {
define( 'WP_JSON_EXPORTER_VERSION', '1.0.3' );
define( 'WP_JSON_EXPORTER_VERSION', '1.0.4' );
define( 'WP_JSON_EXPORTER_DIR', __DIR__ );
define( 'WP_JSON_EXPORTER_VISITS_TABLE', 'json_exporter_visits' );

Expand Down

0 comments on commit 4086089

Please sign in to comment.