Skip to content

Conversation

@rotemtam
Copy link
Contributor

No description provided.

@rotemtam rotemtam closed this Dec 19, 2024
@github-actions
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.

2 participants