Skip to content

Commit

Permalink
cd
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaster482 committed Dec 12, 2023
1 parent c61404a commit aafe1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/schema/initdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CREATE TABLE IF NOT EXISTS category (
user_id UUID REFERENCES Users(id) CONSTRAINT fk_user_category NOT NULL,
parent_tag UUID REFERENCES category(id),
"name" VARCHAR(30) NOT NULL,
image_id INT DEFAULT 0 NOT NULL,
--image_id INT DEFAULT 0 NOT NULL,
show_income BOOLEAN,
show_outcome BOOLEAN,
regular BOOLEAN NOT NULL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
CategoryGet = `SELECT user_id, parent_tag, "name", show_income, show_outcome, regular FROM category WHERE id=$1;`

CategoryCreate = `INSERT INTO category (user_id, parent_tag, "name", show_income, show_outcome, regular)
VALUES ($1, $2, $3, $4, $5, $6, $7)
VALUES ($1, $2, $3, $4, $5, $6)
RETURNING id;`

CategoryUpdate = `UPDATE category SET parent_tag=CAST($1 AS UUID), "name"=$2, show_income=$3, show_outcome=$4, regular=$5 WHERE id=CAST($6 AS UUID);`
Expand Down

0 comments on commit aafe1c7

Please sign in to comment.