File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ public function __construct(array $config)
40
40
$ this ->db = $ this ->connection ->selectDatabase ($ config ['database ' ]);
41
41
42
42
$ this ->useDefaultPostProcessor ();
43
+
44
+ $ this ->useDefaultSchemaGrammar ();
43
45
}
44
46
45
47
/**
@@ -207,6 +209,16 @@ public function getDriverName()
207
209
return 'mongodb ' ;
208
210
}
209
211
212
+ /**
213
+ * Get the default schema grammar instance.
214
+ *
215
+ * @return Schema\Grammar
216
+ */
217
+ protected function getDefaultSchemaGrammar ()
218
+ {
219
+ return new Schema \Grammar ;
220
+ }
221
+
210
222
/**
211
223
* Dynamically pass methods to the connection.
212
224
*
Original file line number Diff line number Diff line change
1
+ <?php namespace Jenssegers \Mongodb \Schema ;
2
+
3
+ use Illuminate \Database \Schema \Grammars \Grammar as BaseGrammar ;
4
+
5
+ class Grammar extends BaseGrammar
6
+ {
7
+ }
You can’t perform that action at this time.
0 commit comments