We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9bfc2 commit bea96d3Copy full SHA for bea96d3
src/DBAL/Models/PgSQL/PgSQLTable.php
@@ -24,6 +24,10 @@ protected function handle(): void
24
$this->repository = app(PgSQLRepository::class);
25
26
$this->pushFulltextIndexes();
27
+
28
+ $this->indexes = $this->indexes->sortBy(function (Index $index) {
29
+ return $index->getName();
30
+ })->values();
31
}
32
33
/**
src/Repositories/PgSQLRepository.php
@@ -143,7 +143,8 @@ public function getFulltextIndexes(string $table): Collection
143
indexdef
144
FROM pg_indexes
145
WHERE tablename = '$table'
146
- AND indexdef LIKE '%to_tsvector(%'"
+ AND indexdef LIKE '%to_tsvector(%'
147
+ ORDER BY indexname"
148
);
149
$definitions = new Collection();
150
0 commit comments