Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloelcolombiano committed Oct 9, 2023
1 parent a7652f5 commit dc1c5fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('name', 'string', [
'limit' => 128,
'null' => false,
Expand Down Expand Up @@ -58,8 +58,6 @@ public function up()
'default' => null,
'null' => true,
])
->addIndex('address_id')
->addIndex('business_address_id')
->addTimestamps('created', 'modified')
->create();

Expand All @@ -69,7 +67,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('title', 'string', [
'limit' => 128,
'null' => false,
Expand All @@ -96,7 +94,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('author_id', 'integer', [
'limit' => 11,
'null' => false,
Expand All @@ -105,12 +103,6 @@ public function up()
'limit' => 11,
'null' => false,
])
->addIndex([
'author_id',
])
->addIndex([
'article_id',
])
->create();

$this->table('addresses')
Expand All @@ -119,7 +111,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('street', 'string', [
'limit' => 128,
'null' => false,
Expand All @@ -138,7 +130,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('name', 'string', [
'limit' => 128,
'null' => false,
Expand All @@ -151,7 +143,6 @@ public function up()
'limit' => 11,
'null' => false,
])
->addIndex('country_id')
// These fields should not be set by the DB by default
// They are used to test that the TimeStampBehavior is
// correctly applied by default.
Expand All @@ -165,7 +156,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('name', 'string', [
'limit' => 128,
'null' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('name', 'string', [
'limit' => 128,
'null' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('name', 'string', [
'limit' => 128,
'null' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function up()
// 'limit' => 11,
// 'generated' => \Phinx\Db\Adapter\PostgresAdapter::GENERATED_BY_DEFAULT,
// ])
// ->addPrimaryKey(['id'])
->addPrimaryKey(['id'])
->addColumn('customer_id', 'integer', [
'limit' => 11,
'null' => false,
Expand Down

0 comments on commit dc1c5fb

Please sign in to comment.