DROP INDEX IF EXISTS idx_requirements_workspace;
ALTER TABLE requirements DROP COLUMN IF EXISTS workspace_id;

DROP INDEX IF EXISTS idx_issues_workspace_status;
ALTER TABLE issues DROP CONSTRAINT IF EXISTS issues_project_workspace_fk;
ALTER TABLE issues DROP COLUMN IF EXISTS workspace_id;

DROP TABLE IF EXISTS git_credentials;
DROP TABLE IF EXISTS workspace_worktrees;
DROP TABLE IF EXISTS workspaces;
