Skip to content

Fixed migration as Postgres does not support after statements - #4

Open
xolf wants to merge 1 commit into
mbpcoder:mainfrom
xolf:patch-1
Open

Fixed migration as Postgres does not support after statements#4
xolf wants to merge 1 commit into
mbpcoder:mainfrom
xolf:patch-1

Conversation

@xolf

@xolf xolf commented Aug 22, 2026

Copy link
Copy Markdown

With running the migration on my Postgres database I received the following error message.

   INFO  Running migrations.  

  2025_01_31_075158_create_locations_table ............................................................................................ 14.01ms FAIL

   Illuminate\Database\QueryException 

  SQLSTATE[42601]: Syntax error: 7 ERROR:  syntax error at or near "after"
LINE 1: ...LTER TABLE locations ADD COLUMN center POINT NULL after is_c...
                                                             ^ (Connection: pgsql, Host: postgres, Port: 5432, Database: spreadly, SQL: ALTER TABLE locations ADD COLUMN center POINT NULL after is_capital)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant