Skip to content

Commit

Permalink
Issue #40 Postgres fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloelcolombiano committed May 21, 2021
1 parent 65c21e1 commit e2fd2a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public function up()
->addForeignKey('country_id', 'countries', 'id', ['delete'=>'RESTRICT', 'update'=>'CASCADE'])
->save();

// Veeeery long table name (= 62) to ensure that the triggers get correctly created.
$this->table('12_123456789_123456789_123456789_123456789_123456789_123456789')->create();
// Veeeery long table name (= 59) to ensure that the triggers get correctly created.
$this->table('123456789_123456789_123456789_123456789_123456789_123456789')->create();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Traits/ExpectedSchemaTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private function allExpectedTables(): array
return [
'cities',
'countries',
'12_123456789_123456789_123456789_123456789_123456789_123456789',
'123456789_123456789_123456789_123456789_123456789_123456789',
];
}

Expand All @@ -39,7 +39,7 @@ private function allExpectedTriggers(): array
return [
'dts_cities',
'dts_countries',
'dts_12_123456789_123456789_123456789_123456789_123456789_123456',
'dts_123456789_123456789_123456789_123456789_123456789_123456789',
];
}
}

0 comments on commit e2fd2a0

Please sign in to comment.