Revision ea8bf973
Von Kivitendo Admin vor etwa 8 Jahren hinzugefügt
SL/DB/MetaSetup/Assembly.pm | ||
---|---|---|
itime => { type => 'timestamp', default => 'now()' },
|
||
mtime => { type => 'timestamp' },
|
||
parts_id => { type => 'integer', not_null => 1 },
|
||
position => { type => 'integer' },
|
||
qty => { type => 'float', scale => 4 },
|
||
);
|
||
|
SL/DB/Part.pm | ||
---|---|---|
assemblies => {
|
||
type => 'one to many',
|
||
class => 'SL::DB::Assembly',
|
||
manager_args => { sort_by => 'position, oid' },
|
||
column_map => { id => 'id' },
|
||
},
|
||
prices => {
|
sql/Pg-upgrade2/assembly_position.sql | ||
---|---|---|
-- @tag: assembly_position
|
||
-- @description: Erzeugniselemente (assembly) erhalten eine Position
|
||
-- @depends: release_3_4_1
|
||
-- @ignore: 0
|
||
|
||
ALTER TABLE assembly ADD COLUMN position INTEGER;
|
Auch abrufbar als: Unified diff
Tabelle assembly bekommt eine Positionsspalte
bisher wurde nach oid sortiert.