Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +micrate Up
-- SQL in section 'Up' is executed when this migration is applied

ALTER TABLE "repo" ADD COLUMN IF NOT EXISTS root_path TEXT DEFAULT NULL;

-- +micrate Down
-- SQL section 'Down' is executed when this migration is rolled back

ALTER TABLE "repo" DROP COLUMN IF EXISTS root_path;
1 change: 1 addition & 0 deletions src/placeos-models/repository.cr
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module PlaceOS::Model
end

attribute repo_type : Type = Type::Driver, converter: PlaceOS::Model::EnumConverter(PlaceOS::Model::Repository::Type), es_type: "text"
attribute root_path : String?

# Error Indicators
attribute has_runtime_error : Bool = false, mass_assignment: false
Expand Down