Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Postgres DB Schema #12

Open
M786453 opened this issue Feb 20, 2024 · 0 comments
Open

Bug in Postgres DB Schema #12

M786453 opened this issue Feb 20, 2024 · 0 comments

Comments

@M786453
Copy link

M786453 commented Feb 20, 2024

'year' column is missing in SQL statement for creating 'budgets' table.

Corrected SQL statement:

CREATE TABLE IF NOT EXISTS budgets (
id serial PRIMARY KEY,
name TEXT NOT NULL,
amount REAL,
year INTEGER NOT NULL,
user_id INTEGER NOT NULL,
CONSTRAINT budgets_user_id_fkey FOREIGN KEY (user_id)
REFERENCES users (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
);

Bug Source:
https://github.com/eddyharrington/Tendie-Tracker/blob/master/dbCreateStatements-Postgres.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant