Plugin Directory

Changeset 3043631


Ignore:
Timestamp:
03/01/2024 12:21:49 PM (23 months ago)
Author:
kantbtrue
Message:

Version 0.2.2

Location:
wpnakama
Files:
45 added
4 edited

Legend:

Unmodified
Added
Removed
  • wpnakama/trunk/changelog.txt

    r3043626 r3043631  
    1 01 March 2024 - Version 0.2.1
     101 March 2024 - Version 0.2.2
    22    * Fix: Database update on plugin updation
    33
  • wpnakama/trunk/inc/class-wpnakama.php

    r3043626 r3043631  
    66 * @subpackage  Core
    77 * @since       0.1.0
    8  * @version     0.2.1
     8 * @version     0.2.2
    99 * @author      kantbtrue, qdonow, designthingy, savydv
    1010 * @license     GPL-2.0-or-later
     
    12361236
    12371237            // Updating database for older versions.
    1238             if ($this->db->version === '0.2.0') {
    1239                 $database_tables_arr = array(
    1240                     array(
    1241                         'name'  => $this->db->table_prefix( 'wpnakama_tasks' ),
    1242                         'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_tasks' ) . ' (
    1243                             task_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
    1244                             content VARCHAR(250),
    1245                             board_id BIGINT(20) NOT NULL DEFAULT 0,
    1246                             card_id BIGINT(20) NOT NULL DEFAULT 0,
    1247                             user_id BIGINT(20) NOT NULL DEFAULT 0,
    1248                             position BIGINT(20) NOT NULL DEFAULT 0,
    1249                             is_completed SMALLINT NOT NULL DEFAULT "0",
    1250                             PRIMARY KEY (task_id),
    1251                             KEY board_id (board_id),
    1252                             KEY card_id (card_id),
    1253                             KEY user_id (user_id),
    1254                             KEY position (position),
    1255                             KEY is_completed (is_completed)
    1256                         )',
    1257                     ),
    1258                     array(
    1259                         'name'  => $this->db->table_prefix( 'wpnakama_taskslists' ),
    1260                         'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_taskslists' ) . ' (
    1261                             taskslist_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
    1262                             title TEXT,
    1263                             tasks LONGTEXT,
    1264                             PRIMARY KEY (taskslist_id)
    1265                         )',
    1266                     )
    1267                 );
    1268 
    1269                 foreach ( $database_tables_arr as $table ) {
    1270                     $this->db->create_table( $table['name'], $table['query'] );
     1238            add_action( 'plugins_loaded', function () {
     1239                if ($this->db->version === '0.2.0') {
     1240                    $database_tables_arr = array(
     1241                        array(
     1242                            'name'  => $this->db->table_prefix( 'wpnakama_tasks' ),
     1243                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_tasks' ) . ' (
     1244                                task_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     1245                                content VARCHAR(250),
     1246                                board_id BIGINT(20) NOT NULL DEFAULT 0,
     1247                                card_id BIGINT(20) NOT NULL DEFAULT 0,
     1248                                user_id BIGINT(20) NOT NULL DEFAULT 0,
     1249                                position BIGINT(20) NOT NULL DEFAULT 0,
     1250                                is_completed SMALLINT NOT NULL DEFAULT "0",
     1251                                PRIMARY KEY (task_id),
     1252                                KEY board_id (board_id),
     1253                                KEY card_id (card_id),
     1254                                KEY user_id (user_id),
     1255                                KEY position (position),
     1256                                KEY is_completed (is_completed)
     1257                            )',
     1258                        ),
     1259                        array(
     1260                            'name'  => $this->db->table_prefix( 'wpnakama_taskslists' ),
     1261                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_taskslists' ) . ' (
     1262                                taskslist_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     1263                                title TEXT,
     1264                                tasks LONGTEXT,
     1265                                PRIMARY KEY (taskslist_id)
     1266                            )',
     1267                        )
     1268                    );
     1269
     1270                    foreach ( $database_tables_arr as $table ) {
     1271                        $this->db->create_table( $table['name'], $table['query'] );
     1272                    }
    12711273                }
    1272             }
     1274                return true;
     1275            } );
    12731276
    12741277            return true;
  • wpnakama/trunk/readme.txt

    r3043626 r3043631  
    55Requires PHP: 7.0
    66Requires at least: 6.4.0
    7 Stable Tag: 0.2.1
     7Stable Tag: 0.2.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • wpnakama/trunk/wpnakama.php

    r3043626 r3043631  
    1111 * Plugin Name:       WPNakama - Fast and Simple Project Management Tool
    1212 * Description:       A management tool right into your WordPress dashboard.
    13  * Version:           0.2.1
     13 * Version:           0.2.2
    1414 * Requires at least: 6.4
    1515 * Requires PHP:      7.0
Note: See TracChangeset for help on using the changeset viewer.