Skip to content

Commit

Permalink
Update Database.php (#1379)
Browse files Browse the repository at this point in the history
* Update Database.php

fix #1378

* Update Database.php

recheck travis
  • Loading branch information
gulaandrij authored and marcj committed May 30, 2017
1 parent a00829f commit 9731408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Propel/Generator/Model/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -842,14 +842,14 @@ public function __toString()
foreach ($this->getTables() as $table) {
$columns = [];
foreach ($table->getColumns() as $column) {
$columns[] = sprintf(" %s %s %s %s %s %s",
$columns[] = sprintf(" %s %s %s %s %s %s %s",
$column->getName(),
$column->getType(),
$column->getSize() ? '(' . $column->getSize() . ')' : '',
$column->isPrimaryKey() ? 'PK' : '',
$column->isNotNull() ? 'NOT NULL' : '',
$column->getDefaultValueString() ? "'".$column->getDefaultValueString()."'" : '',
$column->isAutoIncrement() ? 'AUTO_INCREMENT' : ''
$column->isAutoIncrement() ? 'AUTO_INCREMENT' : ''
);
}

Expand Down

0 comments on commit 9731408

Please sign in to comment.