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

.circleci: test the schema_plan flow only for development branches #27

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

datdao
Copy link
Member

@datdao datdao commented Oct 7, 2024

Do not run integration test for schema flow on master branch because it will break due to "pull request" context

@datdao datdao requested a review from giautm October 7, 2024 10:49
@datdao
Copy link
Member Author

datdao commented Oct 7, 2024

atlas migrate lint on migrations

Status Step Result
No migration files detected  
ERD and visual diff generated View Visualization
No issues found View Report
Read the full linting report on Atlas Cloud

@datdao
Copy link
Member Author

datdao commented Oct 7, 2024

atlas migrate lint on sqlite-wrong-sum

Status Step Result
1 new migration file detected atlas.sum
ERD and visual diff generated View Visualization
Migration Integrity Check
File atlas.sum is invalid
checksum mismatch
Read the full linting report on Atlas Cloud

@datdao
Copy link
Member Author

datdao commented Oct 7, 2024

Atlas detected changes to the desired schema

SQL Plan

-- Create "t1" table
CREATE TABLE "public"."t1" (
  "c1" integer NOT NULL,
  "c2" integer NOT NULL
);
-- Set comment to table: "t1"
COMMENT ON TABLE "public"."t1" IS 'a568a3582f94783074fd4fd05671ac627b681948';

Atlas lint results

Status Step Result
Detect schema changes2 new statements detected
No issues found

📝 To edit this plan, follow these steps
  1. Run atlas schema plan pull --url "atlas://circleci-schema-test/plans/a568a3582f94783074fd4fd05671ac627b681948" > a568a3582f94783074fd4fd05671ac627b681948.plan.hcl
  2. Modify the plan.
  3. Push the plan using atlas schema plan push --pending --env --file a568a3582f94783074fd4fd05671ac627b681948.plan.hcl

@datdao datdao merged commit 881a7b7 into master Oct 7, 2024
23 checks passed
@datdao datdao deleted the d/schema-apply branch October 7, 2024 10:57
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