improve / fix postgres support.

This commit is contained in:
Taylor Otwell
2012-05-30 14:23:27 -05:00
parent 56c6202d28
commit 691d68ba54
8 changed files with 73 additions and 11 deletions

View File

@@ -136,7 +136,9 @@ class Table {
// the index that can be used when dropping indexes.
if (is_null($name))
{
$name = $this->name.'_'.implode('_', $columns).'_'.$type;
$name = str_replace(array('-', '.'), '_', $this->name);
$name = $name.'_'.implode('_', $columns).'_'.$type;
}
return $this->command($type, compact('name', 'columns'));