Fixes two semantic conflicts on main from merging #29242 (chat projects): - **Duplicate migration 000606.** #29242 and #29081 both added `000606`, so golang-migrate refuses to load the migrations (`duplicate migration file: 000606_chat_projects.down.sql`), breaking coderd startup and database tests. `000606_chat_projects` (up, down, fixture) is renamed to `000607`. Main has never been able to migrate with the duplicate, so no deployment has recorded version 606 as chat projects. - **Stale generated code.** #30254 added `UpdateChatTitleByIDIfTitle` with an explicit chat column list that lacks the `project_id` column #29242 added. On regeneration sqlc emits a separate row type instead of `database.Chat`, and dbauthz fails to compile (the `gen` check). The column is added and `queries.sql.go` regenerated. `make gen` is clean, `go build ./...` passes, and the migration, dbauthz method suite, and chatd title tests pass. --- Generated with Coder Agents on behalf of @f0ssel.
10 lines
305 B
SQL
10 lines
305 B
SQL
INSERT INTO chat_projects (id, organization_id, owner_id, name, description, icon)
|
|
VALUES (
|
|
'59400000-0000-4000-8000-000000000001',
|
|
'bb640d07-ca8a-4869-b6bc-ae61ebb2fda1',
|
|
'0ed9befc-4911-4ccf-a8e2-559bf72daa94',
|
|
'Fixture Project',
|
|
'A fixture chat project.',
|
|
'/emojis/1f680.png'
|
|
);
|