Skip to content

Commit

Permalink
feat: Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dinushchathurya committed Dec 31, 2024
1 parent 4f16130 commit 09a48ab
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

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

class AddTestoneToUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// gh-ost: ALTER TABLE users ADD testone VARCHAR(255) NULL AFTER email;
// gh-ost: ALTER TABLE users DROP COLUMN testone;
Schema::table('users', function (Blueprint $table) {
$table->string('testone')->nullable()->after('email');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('testone');
});
}
}

0 comments on commit 09a48ab

Please sign in to comment.