-
Notifications
You must be signed in to change notification settings - Fork 52
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'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
The text was updated successfully, but these errors were encountered: