Skip to content

Commit bf3f12f

Browse files
committed
feat: [PPT-2215] add launch_on_execute attribute to Module
1 parent d1e4059 commit bf3f12f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- +micrate Up
2+
-- SQL in section 'Up' is executed when this migration is applied
3+
4+
ALTER TABLE mod ADD COLUMN IF NOT EXISTS launch_on_execute BOOLEAN NOT NULL DEFAULT FALSE;
5+
6+
-- +micrate Down
7+
-- SQL section 'Down' is executed when this migration is rolled back
8+
9+
ALTER TABLE mod DROP COLUMN IF EXISTS launch_on_execute;

src/placeos-models/module.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ module PlaceOS::Model
4646
attribute has_runtime_error : Bool = false, mass_assignment: false
4747
attribute error_timestamp : Time? = nil, converter: Time::EpochConverterOptional, type: "integer", format: "Int64", mass_assignment: false
4848

49+
attribute launch_on_execute : Bool = false
50+
4951
# Associations
5052
###############################################################################################
5153

0 commit comments

Comments
 (0)