migration file does not display error #940
samirhembrom
started this conversation in
General
Replies: 1 comment 3 replies
-
|
What's wrong with this migration? Seems fine to me. Is it possible you're checking the wrong database (or more likely, the wrong schema) from where the migration was applied? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Should this code throw error? I applied the migration, goose displays that the migration was applied but when i see the database the table was not created.
`-- +goose Up
CREATE TABLE users (
id UUID PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
email TEXT NOT NULL UNIQUE
);
-- -goose Down
DROP TABLE users;
`
Beta Was this translation helpful? Give feedback.
All reactions