KMP PHP API Reference

CreateHelloWorldItems extends AbstractMigration
in package

Create HelloWorldItems table

This migration demonstrates the standard pattern for creating tables in KMP plugins. It includes:

  • Primary key
  • Standard fields
  • Timestamps
  • Foreign keys (if needed)
  • Indexes for performance

To run this migration: bin/cake migrations migrate -p Template

To rollback: bin/cake migrations rollback -p Template

Table of Contents

Methods

change()  : void
Change Method.

Methods

change()

Change Method.

public change() : void

More information on this method is available here: https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method


        
On this page

Search results