Skip to main content
1 of 3
shea
  • 5.6k
  • 4
  • 38
  • 62

No, the column must exist before you insert data into it. Otherwise the query will fail.

You should edit your table creation SQL query to accommodate the new column. Then, run it through dbDelta() again. dbDelta() will compare your query and the table structure and only create the missing columns.

shea
  • 5.6k
  • 4
  • 38
  • 62