Skip to content

Instantly share code, notes, and snippets.

@jakzaizzat
Created February 17, 2018 04:43
Show Gist options
  • Save jakzaizzat/2276bc9aed0f7a1e74726a7b39e9058b to your computer and use it in GitHub Desktop.
Save jakzaizzat/2276bc9aed0f7a1e74726a7b39e9058b to your computer and use it in GitHub Desktop.
Rename column where there is a ENUM column
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