Last active
December 29, 2021 17:33
-
-
Save gilbertoalbino/d577db94057a98c653a72e0d638db31e to your computer and use it in GitHub Desktop.
Grammar not working postgres
This file contains hidden or 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
<?php | |
// ... | |
public function up() | |
{ | |
Grammar::macro('typeFoo', function () { | |
return 'foo'; | |
}); | |
DB::unprepared('CREATE TYPE foo AS ENUM ('a', 'b', 'c');'); | |
Schema::create('my_table', function (Blueprint $table) { | |
$table->bigIncrements('id'); | |
$table->addColumn('foo', 'my_foo_col'); | |
}); | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment