mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Make it clear which service is triggering the exception.
This commit is contained in:
@ -3,7 +3,7 @@ class TableMigrationHelper
|
|||||||
ActiveRecord::Base.exec_sql <<-SQL
|
ActiveRecord::Base.exec_sql <<-SQL
|
||||||
CREATE OR REPLACE FUNCTION raise_read_only() RETURNS trigger AS $rro$
|
CREATE OR REPLACE FUNCTION raise_read_only() RETURNS trigger AS $rro$
|
||||||
BEGIN
|
BEGIN
|
||||||
RAISE EXCEPTION 'Table is read only';
|
RAISE EXCEPTION 'Discourse: Table is read only';
|
||||||
RETURN null;
|
RETURN null;
|
||||||
END
|
END
|
||||||
$rro$ LANGUAGE plpgsql;
|
$rro$ LANGUAGE plpgsql;
|
||||||
|
Reference in New Issue
Block a user