Changeset 2762587
- Timestamp:
- 07/27/2022 07:24:45 PM (4 years ago)
- Location:
- book-a-room/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
bookaroom.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
book-a-room/trunk/README.txt
r2761978 r2762587 1 1 === Plugin Name === 2 Contributors: maniacalv, chuhpl2 Contributors: chuhpl, ManiacalV 3 3 Donate link: http://heightslibrary.org/support-your-library/ 4 4 Tags: meeting room, calendar, library … … 106 106 107 107 == Changelog == 108 = 2.8.5 = 109 * BUGFIX: Added missing column 110 108 111 = 2.8.4 = 109 112 * BUGFIX: Fixed the create_function depreciated error. -
book-a-room/trunk/bookaroom.php
r2761976 r2762587 4 4 Plugin URI: https://wordpress.org/plugins/book-a-room/ 5 5 Description: Book a Room is a library oriented meeting room management and event calendar system. 6 Version: 2.8. 46 Version: 2.8.5 7 7 Author: Colin Tomele 8 8 Author URI: http://heightslibrary.org … … 11 11 */ 12 12 global $wpdb, $bookaroom_db_version; 13 $bookaroom_db_version = " 3";13 $bookaroom_db_version = "4"; 14 14 15 15 define( 'BOOKAROOM_PATH', plugin_dir_path( __FILE__ ) ); … … 25 25 add_action( 'init', 'myStartSession', 1); 26 26 add_action( 'wp_logout', 'myEndSession' ); 27 add_action( 'init', ' my_script_enqueuer' );27 add_action( 'init', 'bookaroom_script_enqueuer' ); 28 28 29 29 #add_filter( 'the_content', array( 'bookaroom_public', 'mainForm' ) ); … … 36 36 #add_action( 'gform_after_submission', array( 'bookaroom_creditCardPayments', 'finishedSubmission' )); 37 37 38 function my_script_enqueuer() {38 function bookaroom_script_enqueuer() { 39 39 40 40 add_shortcode( 'bookaroom_payment', array( 'bookaroom_creditCardPayments', 'managePayments' ) ); … … 76 76 $sql = "ALTER TABLE {$wpdb->prefix}bookaroom_reservations_deleted CHANGE me_contactState me_contactState VARCHAR( 255 );"; 77 77 $wpdb->query( $sql ); 78 79 80 78 81 } 82 if( get_option( 'bookaroom_db_version' ) <= '3' ) { 83 $sql = "ALTER TABLE {$wpdb->prefix}bookaroom_reservations ADD `ev_regContactType` enum('both','phone','either','none','email') CHARACTER SET latin1 DEFAULT 'either';"; 84 $wpdb->query( $sql ); 85 86 $sql = "ALTER TABLE {$wpdb->prefix}bookaroom_reservations_deleted ADD `ev_regContactType` enum('both','phone','either','none','email') CHARACTER SET latin1 DEFAULT 'either';"; 87 $wpdb->query( $sql ); 88 89 90 91 } 92 set_option( 'bookaroom_db_version', 4 ); 79 93 } 80 94 … … 249 263 ev_regStartDate timestamp NULL DEFAULT NULL, 250 264 ev_regType enum('yes','no','staff') DEFAULT NULL, 265 ev_regContactType enum('both','phone','either','none','email') DEFAULT 'either', 251 266 ev_submitter varchar(255) NOT NULL, 252 267 ev_title varchar(255) DEFAULT NULL, … … 298 313 ev_regStartDate timestamp NULL DEFAULT NULL, 299 314 ev_regType enum('yes','no','staff') DEFAULT NULL, 315 ev_regContactType enum('both','phone','either','none','email') DEFAULT 'either', 300 316 ev_submitter varchar(255) NOT NULL, 301 317 ev_title varchar(255) DEFAULT NULL,
Note: See TracChangeset
for help on using the changeset viewer.