Skip to content

Instantly share code, notes, and snippets.

@gilbertoalbino
Last active December 29, 2021 17:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilbertoalbino/d577db94057a98c653a72e0d638db31e to your computer and use it in GitHub Desktop.
Save gilbertoalbino/d577db94057a98c653a72e0d638db31e to your computer and use it in GitHub Desktop.
Grammar not working postgres
<?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