Revision 4913ebdd
Von Tamino Steinert vor 10 Monaten hinzugefügt
SL/DB/MetaSetup/VariantProperty.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('variant_properties'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
abbreviation => { type => 'varchar', length => 4, not_null => 1 },
|
|
12 |
abbreviation => { type => 'text', not_null => 1 },
|
|
13 | 13 |
id => { type => 'serial', not_null => 1 }, |
14 | 14 |
itime => { type => 'timestamp', default => 'now()' }, |
15 | 15 |
mtime => { type => 'timestamp' }, |
SL/DB/MetaSetup/VariantPropertyValue.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('variant_property_values'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
abbreviation => { type => 'varchar', length => 4, not_null => 1 },
|
|
12 |
abbreviation => { type => 'text', not_null => 1 },
|
|
13 | 13 |
id => { type => 'serial', not_null => 1 }, |
14 | 14 |
itime => { type => 'timestamp', default => 'now()' }, |
15 | 15 |
mtime => { type => 'timestamp' }, |
sql/Pg-upgrade2/change_variant_properties_abbreviation_to_text.sql | ||
---|---|---|
1 |
-- @tag: change_variant_properties_abbreviation_to_text |
|
2 |
-- @description: Freitext bei Abkürzung von Varianteneigenschaften und Ausprägungen zulassen |
|
3 |
-- @depends: add_variants |
|
4 |
-- @ignore: 0 |
|
5 |
|
|
6 |
ALTER TABLE variant_properties ALTER COLUMN abbreviation TYPE text; |
|
7 |
ALTER TABLE variant_property_values ALTER COLUMN abbreviation TYPE text; |
Auch abrufbar als: Unified diff
Varianten: Eigenschaft und Auspr.: Länge von Abkürzungen nicht vorgeben