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

Update user.js #17

Closed
wants to merge 1 commit into from
Closed

Update user.js #17

wants to merge 1 commit into from

Conversation

rotemtam
Copy link
Member

No description provided.

@rotemtam rotemtam closed this Dec 19, 2024
Copy link

Atlas detected changes to the desired schema

Migration Plan (View on Atlas Cloud)

-- Modify "Users" table
ALTER TABLE "Users" ADD COLUMN "nickname" character varying(255) NOT NULL;

Atlas lint results

Status Step Result
Detect schema changes1 new statement detected
Analyze 20241219121427.sql
1 reports were found in analysis
Data dependent changes detected
Adding a non-nullable "character varying(255)" column "nickname" will fail in case table "Users" is not empty (MF103)

📝 Steps to edit this migration plan

1. Run the following command to pull the generated plan to your local workstation:

atlas schema plan pull --url "atlas://sequelize-declarative-demo/plans/pr-17-CPRuIsm1" > pr-17-CPRuIsm1.plan.hcl

2. Open pr-17-CPRuIsm1 in your editor and modify it as needed. Note that the result of the plan should align
the database with the desired state. Otherwise, Atlas will report a schema drift.

3. Push the updated plan to the registry using the following command:

atlas schema plan push --pending --file pr-17-CPRuIsm1.plan.hcl

4. Re-trigger the schema/plan action to update this comment:

gh run rerun 12412461031

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.

1 participant