Changeset 3012504
- Timestamp:
- 12/20/2023 02:58:57 PM (2 years ago)
- Location:
- visual-regression-tests
- Files:
-
- 8 edited
- 1 copied
-
tags/1.7.1 (copied) (copied from visual-regression-tests/trunk)
-
tags/1.7.1/includes/tables/class-tests-table.php (modified) (3 diffs)
-
tags/1.7.1/readme.txt (modified) (2 diffs)
-
tags/1.7.1/uninstall.php (modified) (1 diff)
-
tags/1.7.1/visual-regression-tests.php (modified) (1 diff)
-
trunk/includes/tables/class-tests-table.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/uninstall.php (modified) (1 diff)
-
trunk/visual-regression-tests.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
visual-regression-tests/tags/1.7.1/includes/tables/class-tests-table.php
r3011995 r3012504 5 5 class Tests_Table { 6 6 7 const DB_VERSION = '1. 3';7 const DB_VERSION = '1.4'; 8 8 const TABLE_NAME = 'vrts_tests'; 9 9 … … 28 28 $charset_collate = $wpdb->get_charset_collate(); 29 29 30 $sql = "CREATE TABLE {$table_name} ( 31 id bigint(20) unsigned NOT NULL AUTO_INCREMENT, 32 status boolean NOT NULL, 33 post_id bigint(20), 34 current_alert_id bigint(20), 35 snapshot_date datetime, 36 service_test_id varchar(40), 37 target_screenshot_url varchar(2048), 38 hide_css_selectors longtext, 39 PRIMARY KEY (id) 40 ) $charset_collate;"; 41 42 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 43 dbDelta( $sql ); 44 45 if ( version_compare( $installed_version, '1.2', '<' ) ) { 46 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 47 $wpdb->query( 48 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 49 "ALTER TABLE {$table_name} ADD hide_css_selectors longtext;" 50 ); 51 } 52 if ( version_compare( $installed_version, '1.3', '<' ) ) { 30 if ( $installed_version && version_compare( $installed_version, '1.3', '<' ) ) { 53 31 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 54 32 $wpdb->query( … … 61 39 "ALTER TABLE {$table_name} RENAME COLUMN snapshot_date TO base_screenshot_date;" 62 40 ); 63 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 64 $wpdb->query( 65 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 66 "ALTER TABLE {$table_name} ADD last_comparison_date datetime;" 67 ); 68 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 69 $wpdb->query( 70 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 71 "ALTER TABLE {$table_name} ADD next_run_date datetime;" 72 ); 73 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 74 $wpdb->query( 75 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 76 "ALTER TABLE {$table_name} ADD is_running boolean;" 77 ); 78 }//end if 41 } 42 43 $sql = "CREATE TABLE {$table_name} ( 44 id bigint(20) unsigned NOT NULL AUTO_INCREMENT, 45 status boolean NOT NULL, 46 post_id bigint(20), 47 current_alert_id bigint(20), 48 service_test_id varchar(40), 49 base_screenshot_url varchar(2048), 50 base_screenshot_date datetime, 51 last_comparison_date datetime, 52 next_run_date datetime, 53 is_running boolean, 54 hide_css_selectors longtext, 55 PRIMARY KEY (id) 56 ) $charset_collate;"; 57 58 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 59 dbDelta( $sql ); 79 60 80 61 update_option( $option_name, self::DB_VERSION ); -
visual-regression-tests/tags/1.7.1/readme.txt
r3011995 r3012504 4 4 Requires at least: 5.0 5 5 Tested up to: 6.4 6 Stable tag: 1.7. 06 Stable tag: 1.7.1 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 170 170 171 171 == Changelog == 172 173 = 1.7.1 = 174 * Fixed issue with uninstalling the plugin. 172 175 173 176 = 1.7.0 = -
visual-regression-tests/tags/1.7.1/uninstall.php
r2929241 r3012504 7 7 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { 8 8 exit; 9 } 10 11 if ( ! defined( 'VRTS_SERVICE_ENDPOINT' ) ) { 12 define( 'VRTS_SERVICE_ENDPOINT', getenv( 'VRTS_SERVICE_ENDPOINT' ) ?: 'https://bleech-vrts-app.blee.ch/api/v1/' ); 9 13 } 10 14 -
visual-regression-tests/tags/1.7.1/visual-regression-tests.php
r3011995 r3012504 4 4 * Plugin URI: https://bleech.de/en/products/visual-regression-tests/ 5 5 * Description: Test your website for unwanted visual changes. Run automatic tests and spot differences. 6 * Version: 1.7. 06 * Version: 1.7.1 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.0 -
visual-regression-tests/trunk/includes/tables/class-tests-table.php
r3011995 r3012504 5 5 class Tests_Table { 6 6 7 const DB_VERSION = '1. 3';7 const DB_VERSION = '1.4'; 8 8 const TABLE_NAME = 'vrts_tests'; 9 9 … … 28 28 $charset_collate = $wpdb->get_charset_collate(); 29 29 30 $sql = "CREATE TABLE {$table_name} ( 31 id bigint(20) unsigned NOT NULL AUTO_INCREMENT, 32 status boolean NOT NULL, 33 post_id bigint(20), 34 current_alert_id bigint(20), 35 snapshot_date datetime, 36 service_test_id varchar(40), 37 target_screenshot_url varchar(2048), 38 hide_css_selectors longtext, 39 PRIMARY KEY (id) 40 ) $charset_collate;"; 41 42 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 43 dbDelta( $sql ); 44 45 if ( version_compare( $installed_version, '1.2', '<' ) ) { 46 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 47 $wpdb->query( 48 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 49 "ALTER TABLE {$table_name} ADD hide_css_selectors longtext;" 50 ); 51 } 52 if ( version_compare( $installed_version, '1.3', '<' ) ) { 30 if ( $installed_version && version_compare( $installed_version, '1.3', '<' ) ) { 53 31 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 54 32 $wpdb->query( … … 61 39 "ALTER TABLE {$table_name} RENAME COLUMN snapshot_date TO base_screenshot_date;" 62 40 ); 63 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 64 $wpdb->query( 65 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 66 "ALTER TABLE {$table_name} ADD last_comparison_date datetime;" 67 ); 68 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 69 $wpdb->query( 70 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 71 "ALTER TABLE {$table_name} ADD next_run_date datetime;" 72 ); 73 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 74 $wpdb->query( 75 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 76 "ALTER TABLE {$table_name} ADD is_running boolean;" 77 ); 78 }//end if 41 } 42 43 $sql = "CREATE TABLE {$table_name} ( 44 id bigint(20) unsigned NOT NULL AUTO_INCREMENT, 45 status boolean NOT NULL, 46 post_id bigint(20), 47 current_alert_id bigint(20), 48 service_test_id varchar(40), 49 base_screenshot_url varchar(2048), 50 base_screenshot_date datetime, 51 last_comparison_date datetime, 52 next_run_date datetime, 53 is_running boolean, 54 hide_css_selectors longtext, 55 PRIMARY KEY (id) 56 ) $charset_collate;"; 57 58 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 59 dbDelta( $sql ); 79 60 80 61 update_option( $option_name, self::DB_VERSION ); -
visual-regression-tests/trunk/readme.txt
r3011995 r3012504 4 4 Requires at least: 5.0 5 5 Tested up to: 6.4 6 Stable tag: 1.7. 06 Stable tag: 1.7.1 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 170 170 171 171 == Changelog == 172 173 = 1.7.1 = 174 * Fixed issue with uninstalling the plugin. 172 175 173 176 = 1.7.0 = -
visual-regression-tests/trunk/uninstall.php
r2929241 r3012504 7 7 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { 8 8 exit; 9 } 10 11 if ( ! defined( 'VRTS_SERVICE_ENDPOINT' ) ) { 12 define( 'VRTS_SERVICE_ENDPOINT', getenv( 'VRTS_SERVICE_ENDPOINT' ) ?: 'https://bleech-vrts-app.blee.ch/api/v1/' ); 9 13 } 10 14 -
visual-regression-tests/trunk/visual-regression-tests.php
r3011995 r3012504 4 4 * Plugin URI: https://bleech.de/en/products/visual-regression-tests/ 5 5 * Description: Test your website for unwanted visual changes. Run automatic tests and spot differences. 6 * Version: 1.7. 06 * Version: 1.7.1 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.0
Note: See TracChangeset
for help on using the changeset viewer.