cakephp / cakephp/phinx

Add more handy functions to AdapterInterface

Open
#1,715 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
PHP
Stars
4.5k
Forks
884
PR merge metrics
No merged PRs in 30d

Description

Would you guys want to add the following (or some) methods to the AdapterInterface?

# Within a Seeder:
$this->getAdapter()->getAllTables();
$this->getAdapter()->disableForeignKeyConstraint();
$this->getAdapter()->enableForeignKeyConstraint();
$this->getAdapter()->truncateAllTables();

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating AdapterInterface and the adapter implementations used by Seeder, then review how existing adapter capabilities are exposed. Clarify which proposed methods are required and how each should behave across supported databases. Done means the selected interface methods have consistent implementations and appropriate adapter coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.