Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

MySQLのバッチを実行したら,エラーが出た.

# MySQLのバッチを実行したら,エラーが出た.

[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group add column created_at timestamp' at line 1 (SQL: alter table group add column created_at timestamp)

# 原因は'group'が予約語だったこと.'user_group'に変更して対応した.