File tree 2 files changed +19
-10
lines changed
src/Jenssegers/Mongodb/Schema
2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -178,16 +178,6 @@ public function drop()
178
178
$ this ->collection ->drop ();
179
179
}
180
180
181
- /**
182
- * Allow an attribute to be null, does not do anything.
183
- *
184
- * @return Blueprint
185
- */
186
- public function nullable ()
187
- {
188
- return $ this ;
189
- }
190
-
191
181
/**
192
182
* Add a new column to the blueprint.
193
183
*
@@ -224,4 +214,14 @@ protected function fluent($columns = null)
224
214
}
225
215
}
226
216
217
+ /**
218
+ * Allows the use of unsupported schema methods.
219
+ *
220
+ * @return Blueprint
221
+ */
222
+ public function __call ($ method , $ args )
223
+ {
224
+ return $ this ;
225
+ }
226
+
227
227
}
Original file line number Diff line number Diff line change @@ -141,6 +141,15 @@ public function testFluent()
141
141
$ this ->assertEquals (1 , $ index ['key ' ]['token ' ]);
142
142
}
143
143
144
+ public function testDummies ()
145
+ {
146
+ Schema::collection ('newcollection ' , function ($ collection )
147
+ {
148
+ $ collection ->boolean ('activated ' )->default (0 );
149
+ $ collection ->integer ('user_id ' )->unsigned ();
150
+ });
151
+ }
152
+
144
153
protected function getIndex ($ collection , $ name )
145
154
{
146
155
$ collection = DB ::getCollection ($ collection );
You can’t perform that action at this time.
0 commit comments