mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Make it clear which service is triggering the exception.
This commit is contained in:
parent
4144ea34a2
commit
0f2148be9b
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ class TableMigrationHelper
|
|||
ActiveRecord::Base.exec_sql <<-SQL
|
||||
CREATE OR REPLACE FUNCTION raise_read_only() RETURNS trigger AS $rro$
|
||||
BEGIN
|
||||
RAISE EXCEPTION 'Table is read only';
|
||||
RAISE EXCEPTION 'Discourse: Table is read only';
|
||||
RETURN null;
|
||||
END
|
||||
$rro$ LANGUAGE plpgsql;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue