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

gormschema: supports trigger #50

Merged
merged 11 commits into from
Jul 11, 2024
Merged

gormschema: supports trigger #50

merged 11 commits into from
Jul 11, 2024

Conversation

luantranminh
Copy link
Collaborator

No description provided.

@luantranminh
Copy link
Collaborator Author

🧐 generated migration file for sqlite is missing the END
image

CREATE TRIGGER `trg_adding_heart_on_pet` BEFORE INSERT ON `pets` FOR EACH ROW BEGIN
	UPDATE pets SET name = name || ' ❤️' WHERE id = NEW.id;

I'll investigate it 🧐

@luantranminh
Copy link
Collaborator Author

trace down the bug here
ariga/atlas#2808

@luantranminh luantranminh changed the title feat: supports trigger gormschema: supports trigger Jun 1, 2024
@giautm giautm linked an issue Jun 3, 2024 that may be closed by this pull request
@luantranminh luantranminh requested review from a8m and giautm July 2, 2024 16:16
Copy link
Member

@giautm giautm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but wait for @a8m opinion.

@luantranminh luantranminh merged commit 66b75de into master Jul 11, 2024
10 checks passed
@luantranminh luantranminh deleted the luan/supports-trigger branch July 11, 2024 09:44
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

Successfully merging this pull request may close these issues.

[Feature] Supports Trigger
3 participants