Skip to content

Commit

Permalink
add migration
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
  • Loading branch information
sthwang-metal committed Dec 21, 2023
1 parent 96dc3b4 commit bba8d38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions db/migrations/20231220213519_change_port_name_optional.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- +goose Up
-- modify "origins" table
ALTER TABLE "port" ALTER COLUMN "name" character varying NULL;

-- +goose Down
-- reverse: modify "origins" table
ALTER TABLE "port" ALTER COLUMN "name" character varying NOT NULL;
5 changes: 3 additions & 2 deletions db/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
h1:C2ooKhLvT6ZWxsvbhzwIlh+LWFh+wU+nRN1onsCHlkw=
h1:8d87ZVoEt4897wA5FeX2beZZZ7oiOMkpAMkxETE5EyQ=
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=
20231017005257_add_origin_weight.sql h1:NuorUbcydDqcyPK8wgwlkQxaH+zGWfVtJW9UPL1Vn+E=
20231220213519_change_port_name_optional.sql h1:npWzULsPh/68ScWHiNZik4KX9gA1PejCv9uHqlCUl9I=

0 comments on commit bba8d38

Please sign in to comment.