-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
* Add ability to set weight for an origin Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com> * Linters gonna lint Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com> * add weight to origin node Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com> * add migration to add origin weight column Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com> * postgres compatible Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com> * change to int instead of bigint Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com> --------- Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com> Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com> Co-authored-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- +goose Up | ||
-- modify "origins" table | ||
ALTER TABLE "origins" ADD COLUMN "weight" int NOT NULL DEFAULT 100; | ||
|
||
-- +goose Down | ||
-- reverse: modify "origins" table | ||
ALTER TABLE "origins" DROP COLUMN "weight"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
h1:c+ziReSuevRk7RBOpYWo0gncdcwco4V61ROlPMPe5EE= | ||
h1:C2ooKhLvT6ZWxsvbhzwIlh+LWFh+wU+nRN1onsCHlkw= | ||
20230503185445_initial-migration.sql h1:4pqNp2MDBBRdGxU/H5mmZui9oi1SyjIiMVGatajrBeY= | ||
20230615194819_drop_tenant_add_owner.sql h1:KGCsItU0NYhxYEkhZOaMQjfIrBMnek5rxC6D/LhnyCk= | ||
20230629085916_drop_status_and_annotations.sql h1:kvDMoaMEjyoj/aRi6rw4XvCLxGH09vGGLbL0/p5tpPo= | ||
20231017005257_add_origin_weight.sql h1:G0SKQBweZg4S9IvpnoIeVJ05aLSiNb3PWnJcZyo+2fg= |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.