Skip to content

Commit

Permalink
Added default value for new position column in type tables
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jul 19, 2018
1 parent 7882cb8 commit 6008fb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/custom/setup/default/schema/customer.php
Expand Up @@ -122,7 +122,7 @@
$table->addColumn( 'domain', 'string', array( 'length' => 32 ) );
$table->addColumn( 'code', 'string', array( 'length' => 32 ) );
$table->addColumn( 'label', 'string', array( 'length' => 255 ) );
$table->addColumn( 'pos', 'integer', [] );
$table->addColumn( 'pos', 'integer', ['default' => 0] );
$table->addColumn( 'status', 'smallint', [] );
$table->addColumn( 'mtime', 'datetime', [] );
$table->addColumn( 'ctime', 'datetime', [] );
Expand Down Expand Up @@ -182,7 +182,7 @@
$table->addColumn( 'domain', 'string', array( 'length' => 32 ) );
$table->addColumn( 'code', 'string', array( 'length' => 32 ) );
$table->addColumn( 'label', 'string', array( 'length' => 255 ) );
$table->addColumn( 'pos', 'integer', [] );
$table->addColumn( 'pos', 'integer', ['default' => 0] );
$table->addColumn( 'status', 'smallint', [] );
$table->addColumn( 'mtime', 'datetime', [] );
$table->addColumn( 'ctime', 'datetime', [] );
Expand Down

0 comments on commit 6008fb4

Please sign in to comment.