Skip to content

Commit b845697

Browse files
committed
migration catchers
1 parent 4da3bf8 commit b845697

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/Schema/Builder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ private function _sanitizeFlatFields($flatFields)
269269
return $fields;
270270
}
271271

272+
//----------------------------------------------------------------------
273+
// Internal Laravel init migration catchers
274+
// *Case for when ES is the only datasource
275+
//----------------------------------------------------------------------
276+
public function hasTable($table)
277+
{
278+
return $this->getIndex($table);
279+
}
272280

273281
//----------------------------------------------------------------------
274282
// Builders

src/Schema/IndexBlueprint.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,23 @@ public function buildIndexModify(Connection $connection)
165165
}
166166
}
167167

168+
169+
//----------------------------------------------------------------------
170+
// Internal Laravel init migration catchers
171+
// *Case for when ES is the only datasource
172+
//----------------------------------------------------------------------
173+
174+
public function increments($column)
175+
{
176+
return $this->addField('text', $column);
177+
}
178+
179+
public function string($column)
180+
{
181+
return $this->addField('text', $column);
182+
}
183+
184+
168185
//----------------------------------------------------------------------
169186
// Helpers
170187
//----------------------------------------------------------------------

0 commit comments

Comments
 (0)