Changeset 1965651
- Timestamp:
- 10/30/2018 08:32:23 AM (7 years ago)
- Location:
- easyreservations/trunk
- Files:
-
- 3 edited
-
easyReservations.php (modified) (2 diffs)
-
lib/class-easyreservations.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easyreservations/trunk/easyReservations.php
r1965297 r1965651 4 4 Plugin URI: http://www.easyreservations.org 5 5 Description: This powerful property and reservation management plugin allows you to receive, schedule and handle your bookings easily! 6 Version: 5.0. 56 Version: 5.0.6 7 7 Author: Feryaz Beer 8 8 Author URI: http://www.feryaz.de … … 43 43 add_action('init', 'easyreservations_api_rewrite_rule' ); 44 44 */ 45 46 global $wpdb;47 48 $charset_collate = $wpdb->get_charset_collate();49 $max_index_length = 191;50 51 $sql = "CREATE TABLE {$wpdb->prefix}reservations (52 id int(10) NOT NULL AUTO_INCREMENT,53 arrival DATETIME NOT NULL,54 departure DATETIME NOT NULL,55 user int(10) NOT NULL,56 name varchar(35) NOT NULL,57 email varchar(50) NOT NULL,58 country varchar(4) NOT NULL,59 approve varchar(3) NOT NULL,60 resource int(10) NOT NULL,61 space int(10) NOT NULL,62 adults int(10) NOT NULL,63 children int(10) NOT NULL,64 price DECIMAL(13,4),65 paid DECIMAL(13, 4) NOT NULL default '0',66 reserved DATETIME NOT NULL,67 PRIMARY KEY (id)68 ) $charset_collate;";69 70 71 $sql .= "CREATE TABLE {$wpdb->prefix}reservationmeta (72 meta_id bigint(20) unsigned NOT NULL auto_increment,73 reservation_id bigint(20) unsigned NOT NULL default '0',74 meta_key varchar(255) default NULL,75 meta_value longtext,76 PRIMARY KEY (meta_id),77 KEY reservation_id (reservation_id),78 KEY meta_key (meta_key($max_index_length))79 ) $charset_collate;";80 require_once(ABSPATH . 'wp-admin/includes/upgrade.php');81 var_dump($sql);82 var_dump(dbDelta($sql)); -
easyreservations/trunk/lib/class-easyreservations.php
r1965297 r1965651 8 8 final class easyReservations { 9 9 //Current Version of easyReservations 10 public $version = '5.0. 5';10 public $version = '5.0.6'; 11 11 12 12 //Current Database Version of easyReservations … … 40 40 $reservations_settings = get_option( "reservations_settings" ); 41 41 42 define( 'RESERVATIONS_VERSION', '5.0. 5' );42 define( 'RESERVATIONS_VERSION', '5.0.6' ); 43 43 define( 'RESERVATIONS_ABSPATH', dirname( RESERVATIONS_PLUGIN_FILE ) . '/' ); 44 44 define( 'RESERVATIONS_URL', WP_PLUGIN_URL . '/easyreservations/' ); -
easyreservations/trunk/readme.txt
r1965297 r1965651 4 4 Requires at least: 3.3 5 5 Tested up to: 4.9.8 6 Stable tag: 5.0. 56 Stable tag: 5.0.6 7 7 8 8 This 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.