Created
February 17, 2018 04:43
-
-
Save jakzaizzat/2276bc9aed0f7a1e74726a7b39e9058b to your computer and use it in GitHub Desktop.
Rename column where there is a ENUM column
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function up() | |
{ | |
Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); | |
Schema::table('jobs', function(Blueprint $table) | |
{ | |
$table->decimal('latitude', 10, 6)->nullable()->change(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment