|
|
|
@ -103,12 +103,12 @@ Create a new database migration using the custom Meta command:
|
|
|
|
|
$ php artisan meta:migration --table=existing_table_name
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Make sure the inside of the `up()` function matches the following:
|
|
|
|
|
Make sure the inside of the `up()` function contains the `formTable` function:
|
|
|
|
|
|
|
|
|
|
``` php
|
|
|
|
|
public function up()
|
|
|
|
|
{
|
|
|
|
|
Schema::table('DummyTable', function (Blueprint $table) {
|
|
|
|
|
Schema::table('existing_table_name', function (Blueprint $table) {
|
|
|
|
|
Meta::formTable($table);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|