Plugin Directory

Changeset 1965297


Ignore:
Timestamp:
10/29/2018 06:20:54 PM (7 years ago)
Author:
feryaz
Message:

Update to 5.0.5

Location:
easyreservations/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • easyreservations/trunk/easyReservations.php

    r1965260 r1965297  
    44Plugin URI: http://www.easyreservations.org
    55Description: This powerful property and reservation management plugin allows you to receive, schedule and handle your bookings easily!
    6 Version: 5.0.4
     6Version: 5.0.5
    77Author: Feryaz Beer
    88Author URI: http://www.feryaz.de
  • easyreservations/trunk/lib/class-easyreservations.php

    r1965260 r1965297  
    88final class easyReservations {
    99    //Current Version of easyReservations
    10     public $version = '5.0.4';
     10    public $version = '5.0.5';
    1111
    1212    //Current Database Version of easyReservations
     
    4040        $reservations_settings = get_option( "reservations_settings" );
    4141
    42         define( 'RESERVATIONS_VERSION', '5.0.4' );
     42        define( 'RESERVATIONS_VERSION', '5.0.5' );
    4343        define( 'RESERVATIONS_ABSPATH', dirname( RESERVATIONS_PLUGIN_FILE ) . '/' );
    4444        define( 'RESERVATIONS_URL', WP_PLUGIN_URL . '/easyreservations/' );
  • easyreservations/trunk/lib/updates/install.php

    r1964958 r1965297  
    6464    $charset_collate = $wpdb->get_charset_collate();
    6565    $max_index_length = 191;
    66     $table_name = $wpdb->prefix . "reservations";
    6766
    68 $sql = "CREATE TABLE IF NOT EXISTS $table_name (
    69         id int(10) NOT NULL AUTO_INCREMENT,
    70         arrival DATETIME NOT NULL,
    71         departure DATETIME NOT NULL,
    72         user int(10) NOT NULL,
    73         name varchar(35) NOT NULL,
    74         email varchar(50) NOT NULL,
    75         country varchar(4) NOT NULL,
    76         approve varchar(3) NOT NULL,
    77         resource int(10) NOT NULL,
    78         space int(10) NOT NULL,
    79         adults int(10) NOT NULL,
    80         children int(10) NOT NULL,
    81         price DECIMAL(13,4),
    82         paid DECIMAL(13, 4) NOT NULL default 0,
    83         reserved DATETIME NOT NULL,
    84       PRIMARY KEY (id),
    85       KEY id (id)
    86     ) $charset_collate;";
     67    $sql = "CREATE TABLE {$wpdb->prefix}reservations (
     68                id int(10) NOT NULL AUTO_INCREMENT,
     69                arrival DATETIME NOT NULL,
     70                departure DATETIME NOT NULL,
     71                user int(10) NOT NULL,
     72                name varchar(35) NOT NULL,
     73                email varchar(50) NOT NULL,
     74                country varchar(4) NOT NULL,
     75                approve varchar(3) NOT NULL,
     76                resource int(10) NOT NULL,
     77                space int(10) NOT NULL,
     78                adults int(10) NOT NULL,
     79                children int(10) NOT NULL,
     80                price DECIMAL(13,4),
     81                paid DECIMAL(13, 4) NOT NULL default '0',
     82                reserved DATETIME NOT NULL,
     83              PRIMARY KEY (id)
     84            ) $charset_collate;";
    8785
    88     $table_name = $wpdb->prefix . "reservationmeta";
    89 
    90     $sql .= "CREATE TABLE IF NOT EXISTS $table_name (
    91           meta_id bigint(20) unsigned NOT NULL auto_increment,
    92           reservation_id bigint(20) unsigned NOT NULL default '0',
    93           meta_key varchar(255) default NULL,
    94           meta_value longtext,
    95           PRIMARY KEY  (meta_id),
    96           KEY reservation_id (reservation_id),
    97           KEY meta_key (meta_key($max_index_length))
    98         ) $charset_collate;";
    99     require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
     86    $sql .= "CREATE TABLE {$wpdb->prefix}reservationmeta (
     87              meta_id bigint(20) unsigned NOT NULL auto_increment,
     88              reservation_id bigint(20) unsigned NOT NULL default '0',
     89              meta_key varchar(255) default NULL,
     90              meta_value longtext,
     91              PRIMARY KEY  (meta_id),
     92              KEY reservation_id (reservation_id),
     93              KEY meta_key (meta_key($max_index_length))
     94            ) $charset_collate;";
     95    require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
    10096    dbDelta($sql);
    10197
  • easyreservations/trunk/readme.txt

    r1965260 r1965297  
    44Requires at least: 3.3
    55Tested up to: 4.9.8
    6 Stable tag: 5.0.4
     6Stable tag: 5.0.5
    77
    88This powerful property and reservation management plugin allows you to receive, schedule and handle your bookings easily!
Note: See TracChangeset for help on using the changeset viewer.