factor => { type => 'numeric', precision => 5, scale => 20 },
type => { type => 'varchar', length => 20 },
sortkey => { type => 'integer', not_null => 1 },
+ id => { type => 'serial', not_null => 1 },
],
primary_key_columns => [ 'name' ],
+ unique_key => [ 'id' ],
+
foreign_keys => [
unit => {
class => 'SL::DB::Unit',
--- /dev/null
+-- @tag: units_id
+-- @description: ID-Spalte für Tabelle "units"
+-- @depends: release_2_6_2
+-- @charset: utf-8
+ALTER TABLE units ADD COLUMN id serial;
+ALTER TABLE units ADD CONSTRAINT units_id_unique UNIQUE (id);