Skip to content

Add namespaced WPCLI command for managing schemas #4

Open
@borkweb

Description

@borkweb

It'd be rad to have some sort of auto-namespaced WPCLI commands for schema management

Here are some braindump notes:

wp {namespace}:schema help (list the tables)
wp {namespace}:schema {table} {up|down|drop|version}

wp tec:schema tec_events up

// Maybe build the namespace from the base namespace of the plugin that is consuming it.
$prefix = str_replace( '\\', '-', __NAMESPACE__ );

apply_filters( 'stellarwp_schema_wpcli_namespace', $prefix, __NAMESPACE__ );

wp tribe-pue:schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions