Skip to content

Commit

Permalink
Change the data type for return_type field to json string (#100)
Browse files Browse the repository at this point in the history
* Return types json string

* Add database migration file

---------

Co-authored-by: James Kwon <[email protected]>
  • Loading branch information
james03160927 and james03160927 authored Dec 31, 2024
1 parent 30b0d32 commit a46848f
Show file tree
Hide file tree
Showing 15 changed files with 290 additions and 174 deletions.
206 changes: 103 additions & 103 deletions drip/api.gen.go

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions ent/comfynode.go

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

7 changes: 5 additions & 2 deletions ent/comfynode/comfynode.go

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

80 changes: 80 additions & 0 deletions ent/comfynode/where.go

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

45 changes: 33 additions & 12 deletions ent/comfynode_create.go

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

48 changes: 30 additions & 18 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/20241231175239_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 "return_types" TYPE text, ALTER COLUMN "return_types" 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:iUdBB2O1NEQOLnaj4FZq+8j5lBb7mPsKW+6q87KlwHs=
h1:j1iHEhhxxO5CyFLbZhUFpfUCxJAqlwFzGfNKLFdrIRk=
20240526144817_migration.sql h1:sP6keX+oMyLL2qpIFx0Ns0WYfWM5hJ4zkFPmLWT68fM=
20240528220411_migration.sql h1:SR44sOEaWbDgYCKJZIKcGCI7Ta+LqL71z225Nhs2+HM=
20240528221846_migration.sql h1:EkUonGI9Bu689qWX4pG3PRC+On4f6u7UvwDbaR8mCNk=
Expand All @@ -17,3 +17,4 @@ h1:iUdBB2O1NEQOLnaj4FZq+8j5lBb7mPsKW+6q87KlwHs=
20240711235600_migration.sql h1:vT82ssDcIMCHPQQdaJjqovKTXg6amMp5W+lz7ilIowY=
20240712001321_migration.sql h1:fK0ePEw3Xr82hRFD/634KLX2tmczgvbUE6KMVlT/4fc=
20241226025206_migration.sql h1:y/ZYZYi3KBibAhuFxxBbuNbcnLs7pdVvtmj1pXedmiY=
20241231175239_migration.sql h1:igqzI6zZ87Q80+JLQTqFg0TbxyLWxeZlByO3WLVhjb0=
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.

Loading

0 comments on commit a46848f

Please sign in to comment.