| @@ -16,9 +16,11 @@ | ||
| 16 | 16 | |
| 17 | 17 | $charsetCollate = $wpdb->get_charset_collate(); |
| 18 | 18 | $table = $wpdb->prefix . 'fbs_task_metas'; |
| 19 | 19 | |
| 20 | + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Schema check query, caching not applicable for migrations | |
| 20 | 21 | if ($wpdb->get_var($wpdb->prepare("SHOW TABLES LIKE %s", $table)) != $table || $isForced) { |
| 22 | + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange -- Table name cannot be prepared in CREATE TABLE | |
| 21 | 23 | $sql = "CREATE TABLE $table ( |
| 22 | 24 | `id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, |
| 23 | 25 | `task_id` INT UNSIGNED NOT NULL, |
| 24 | 26 | `key` VARCHAR(100) NOT NULL, |