blob: 71cb9e765de1d57b342a53acfa9d1119ea77c96f [file] [log] [blame]
-- Copyright 2021 The Go Authors. All rights reserved.
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file.
BEGIN;
CREATE OR REPLACE FUNCTION trigger_modify_symbol_search_documents_imported_by_count() RETURNS TRIGGER AS $$
BEGIN
UPDATE symbol_search_documents
SET imported_by_count=NEW.imported_by_count;
RETURN NEW;
END;
$$ LANGUAGE PLPGSQL;
END;