Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions export-laravel-5-migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,11 @@
migration_tables = []
migrationTemplate = '''<?php

namespace Database\Migrations;

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Create{tableNameCamelCase}Table extends Migration
return new class extends Migration
{{
/**
* Schema table name to migrate
Expand Down Expand Up @@ -148,7 +146,7 @@ class Create{tableNameCamelCase}Table extends Migration

migrationEndingTemplate = ''' Schema::dropIfExists($this->tableName);
}}
}}
}};
'''

ModuleInfo = DefineModule(
Expand Down