Revision 792
- Date:
- 2020/05/26 11:52:30
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/plugins/webshop/lib/webshop/Coupon.pm
169 169 if ( $default_section && !$self->sections ) { 170 170 $self->sections($default_section); 171 171 } 172 if ( ref $user ) { 173 if ( $self->id ) { 174 $self->edited_by( $user->id ); 175 } else { 176 $self->created_by( $user->id ); 177 } 178 } 172 179 173 180 return 1; 174 181 } -
utf8/plugins/webshop/lib/webshop/SQL/CouponsTable.pm
87 87 'default' => 'CURRENT_TIMESTAMP', 88 88 }, 89 89 { 90 'attr' => 'created_by', 91 'type' => 'integer', 92 'rusname' => 'ID создателя документа', 93 'hidden' => 1, 94 'db_field' => 'created_by', 95 'db_type' => 'integer', 96 }, 97 { 98 'attr' => 'edited_by', 99 'type' => 'integer', 100 'rusname' => 'ID последнего редактора', 101 'hidden' => 1, 102 'db_field' => 'edited_by', 103 'db_type' => 'integer', 104 }, 105 { 90 106 'attr' => 'pid', 91 107 'type' => 'integer', 92 108 'rusname' => 'ID прототипа', -
utf8/plugins/webshop/sql/TOAST/coupons.792.sql
1 ALTER TABLE webshop_coupons 2 ADD COLUMN created_by integer, 3 ADD COLUMN edited_by integer 4 ; -
utf8/plugins/webshop/sql/TOAST/coupons.sql
5 5 dtime timestamp without time zone DEFAULT now() NOT NULL, 6 6 etime timestamp without time zone DEFAULT now() NOT NULL, 7 7 class text DEFAULT 'webshop::Coupon'::text NOT NULL, 8 created_by integer, 9 edited_by integer, 8 10 status smallint default 0 NOT NULL, 9 11 sections integer, 10 12 pid integer default 0,