biblio.monograph_part
|
Soft Deletes: This table uses a |
|
Data-Modifying Triggers: This table has BEFORE ROW trigger(s) that modify row data before write. Values you INSERT or UPDATE may differ from what is actually stored. See the Triggers section below. |
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('biblio.monograph_part_id_seq'::regclass) |
|
record FK |
|
No |
||
label |
|
No |
||
label_sortkey |
|
No |
||
deleted SOFT-DEL |
|
No |
false |
|
creator |
|
No |
1 |
|
create_date |
|
No |
now() |
|
editor |
|
No |
1 |
|
edit_date |
|
No |
now() |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
No |
|
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
Triggers
| Trigger | Timing | Event | Level | Function |
|---|---|---|---|---|
|
BEFORE |
INSERT OR UPDATE |
ROW |
Trigger Bodies
norm_sort_label
Function: biblio.normalize_biblio_monograph_part_sortkey()
Timing: BEFORE INSERT OR UPDATE ROW
|
This trigger modifies the row before it is written (returns a modified |
BEGIN
NEW.label_sortkey := REGEXP_REPLACE(
evergreen.lpad_number_substrings(
naco_normalize(NEW.label),
'0',
10
),
E'\\s+',
'',
'g'
);
RETURN NEW;
END;