bisher wurde nach oid sortiert.
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
parts_id => { type => 'integer', not_null => 1 },
+ position => { type => 'integer' },
qty => { type => 'float', scale => 4 },
);
assemblies => {
type => 'one to many',
class => 'SL::DB::Assembly',
+ manager_args => { sort_by => 'position, oid' },
column_map => { id => 'id' },
},
prices => {
--- /dev/null
+-- @tag: assembly_position
+-- @description: Erzeugniselemente (assembly) erhalten eine Position
+-- @depends: release_3_4_1
+-- @ignore: 0
+
+ALTER TABLE assembly ADD COLUMN position INTEGER;