Skip to content

Commit

Permalink
Merge pull request OnlineBuddies#86 from iarna/primary-fix
Browse files Browse the repository at this point in the history
Fix missing is_primary attribute on columns
  • Loading branch information
aredridel committed Mar 16, 2012
2 parents 5524e29 + 8815222 commit 307d1a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Modyllic/Generator/SQL.php
Expand Up @@ -247,7 +247,7 @@ function create_table( $table, $schema ) {
$completed = 0;
foreach ( $table->columns as $column ) {
$this->create_column( $column );
if ( $column->primary ) {
if ( $column->is_primary ) {
unset($indexes['!PRIMARY KEY']);
$entries --;
}
Expand Down
1 change: 1 addition & 0 deletions Modyllic/Schema.php
Expand Up @@ -385,6 +385,7 @@ class Modyllic_Column extends Modyllic_Diffable {
public $on_update;
public $docs = "";
public $after;
public $is_primary;

/**
* @param string $name
Expand Down

0 comments on commit 307d1a0

Please sign in to comment.