database-operations

Create and migrate WordPress cf7_api_logs database tables with dbDelta schemas.

1|Updated Aug 12, 2025
One-click install
npx skills add https://github.com/SilverAssist/contact-form-to-api --skill database-operations-silverassist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-operations
Source: https://github.com/SilverAssist/contact-form-to-api/tree/main/.github/skills/database-operations
Command: npx skills add https://github.com/SilverAssist/contact-form-to-api --skill database-operations-silverassist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Database Operations for WordPress plugins focusing on creating/modifying tables, migrations, and secure handling of cf7_api_logs data.

Core Features & Use Cases

  • dbDelta-based table creation and schema migrations for the cf7_api_logs table, with proper charset handling.
  • Encrypted storage and retrieval of request/response data and headers through prepared statements and safe SQL.
  • Migration patterns: batch encryption of unencrypted data and upgrade paths for encrypted storage.
  • Use Case: WordPress plugin developers needing reliable, auditable data logging for API integrations.

Quick Start

Create the cf7_api_logs table with the provided schema and run a batch migration to encrypt existing data.

Frequently Asked Questions about database-operations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom WordPress database table for API logging?

Use dbDelta-based schema definitions to create custom WordPress database tables for API logging with proper charset handling. This ensures reliable, auditable storage for API integration data without manual SQL execution errors.

What is the best way to migrate unencrypted data to encrypted storage in WordPress?

Batch migration patterns encrypt unencrypted data by applying upgrade paths for encrypted storage in WordPress. This process secures existing request and response data retroactively without taking your application offline.

How do prepared statements secure API interaction logs in WordPress plugins?

Prepared statements secure API interaction logs by parameterizing SQL queries for encrypted storage and retrieval of request, response, and header data. This prevents SQL injection while handling sensitive API logging operations.

Can I use dbDelta for modifying existing plugin database schemas?

Yes, dbDelta handles table creation and schema migrations for existing plugin database schemas, including cf7_api_logs tables. It applies version-controlled upgrade paths to manage encryption versions and batch data updates safely.

When do I need batch encryption for WordPress database migrations?

Batch encryption for WordPress database migrations is needed when upgrading unencrypted API logs to encrypted storage formats. It supports handling encryption version changes and ensures secure data transformation across large existing records.