Skip to content

Commit

Permalink
Add stub methods to postgres + sqlite schemas.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 31, 2013
1 parent 5e42e70 commit f31d30b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/Cake/Database/Schema/PostgresSchema.php
Expand Up @@ -184,6 +184,29 @@ public function convertFieldDescription(Table $table, $row, $fieldParams = []) {
}
}

/**
* Get the SQL to describe the indexes in a table.
*
* @param string $table The table name to get information on.
* @return array An array of (sql, params) to execute.
*/
public function describeIndexSql($table) {
$sql = '';
return [$sql, []];
}

/**
* Convert an index into the abstract description.
*
* @param Cake\Database\Schema\Table $table The table object to append
* an index or constraint to.
* @param array $row The row data from describeIndexSql
* @return void
*/
public function convertIndexDescription(Table $table, $row) {
}


/**
* Generate the SQL fragment for a single column.
*
Expand Down
22 changes: 22 additions & 0 deletions lib/Cake/Database/Schema/SqliteSchema.php
Expand Up @@ -139,6 +139,28 @@ public function convertFieldDescription(Table $table, $row, $fieldParams = []) {
}
}

/**
* Get the SQL to describe the indexes in a table.
*
* @param string $table The table name to get information on.
* @return array An array of (sql, params) to execute.
*/
public function describeIndexSql($table) {
$sql = '';
return [$sql, []];
}

/**
* Convert an index into the abstract description.
*
* @param Cake\Database\Schema\Table $table The table object to append
* an index or constraint to.
* @param array $row The row data from describeIndexSql
* @return void
*/
public function convertIndexDescription(Table $table, $row) {
}

/**
* Generate the SQL fragment for a single column in Sqlite
*
Expand Down

0 comments on commit f31d30b

Please sign in to comment.