Skip to content

Commit

Permalink
Change function field as optional in comfy-node table (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: James Kwon <[email protected]>
  • Loading branch information
james03160927 and james03160927 authored Dec 31, 2024
1 parent a46848f commit 67b2b18
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 6 deletions.
10 changes: 10 additions & 0 deletions ent/comfynode/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 28 additions & 3 deletions ent/comfynode_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions ent/comfynode_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ent/migrate/migrations/20241231182546_migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "comfy_nodes" table
ALTER TABLE "comfy_nodes" ALTER COLUMN "function" DROP NOT NULL;
3 changes: 2 additions & 1 deletion ent/migrate/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:j1iHEhhxxO5CyFLbZhUFpfUCxJAqlwFzGfNKLFdrIRk=
h1:8SOJUFGRssSFdXBeGuzVrSFCGl1tbQzcRmYLySPuCjw=
20240526144817_migration.sql h1:sP6keX+oMyLL2qpIFx0Ns0WYfWM5hJ4zkFPmLWT68fM=
20240528220411_migration.sql h1:SR44sOEaWbDgYCKJZIKcGCI7Ta+LqL71z225Nhs2+HM=
20240528221846_migration.sql h1:EkUonGI9Bu689qWX4pG3PRC+On4f6u7UvwDbaR8mCNk=
Expand All @@ -18,3 +18,4 @@ h1:j1iHEhhxxO5CyFLbZhUFpfUCxJAqlwFzGfNKLFdrIRk=
20240712001321_migration.sql h1:fK0ePEw3Xr82hRFD/634KLX2tmczgvbUE6KMVlT/4fc=
20241226025206_migration.sql h1:y/ZYZYi3KBibAhuFxxBbuNbcnLs7pdVvtmj1pXedmiY=
20241231175239_migration.sql h1:igqzI6zZ87Q80+JLQTqFg0TbxyLWxeZlByO3WLVhjb0=
20241231182546_migration.sql h1:vqeCFbEp44x7DPYxTK+2inBDwAMiEo+uHO9BO/hthl8=
2 changes: 1 addition & 1 deletion ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ent/schema/comfy_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (ComfyNode) Fields() []ent.Field {
}).Optional(),
field.String("function").SchemaType(map[string]string{
dialect.Postgres: "text",
}),
}).Optional(),
}
}

Expand Down

0 comments on commit 67b2b18

Please sign in to comment.