Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 2 years ago.
0

I have ended up just using raw SQL queries in my migrations, like so:

public function up()
{
    DB::statement('ALTER TABLE `glossary` ADD `uuid` BINARY(16) NULL AFTER `id`');
}

public function down()
{
    DB::statement('ALTER TABLE `glossary` DROP COLUMN `uuid`');
}

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nashlore nashlore Joined 6 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.