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

src/commands: support schema plan #25

Merged
merged 1 commit into from
Oct 7, 2024
Merged

src/commands: support schema plan #25

merged 1 commit into from
Oct 7, 2024

Conversation

datdao
Copy link
Member

@datdao datdao commented Oct 4, 2024

No description provided.

@datdao
Copy link
Member Author

datdao commented Oct 4, 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 4, 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 4, 2024

Atlas detected changes to the desired schema

SQL Plan

-- Create "t1" table
CREATE TABLE "public"."t1" (
  "c1" integer NOT NULL
);

Atlas lint results

Status Step Result
Detect schema changes1 new statement detected
No issues found

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

@datdao datdao force-pushed the d/schema-apply branch 2 times, most recently from 35dddee to 9107924 Compare October 4, 2024 07:49
@datdao
Copy link
Member Author

datdao commented Oct 4, 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
);

Atlas lint results

Status Step Result
Detect schema changes1 new statement detected
No issues found

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

@datdao
Copy link
Member Author

datdao commented Oct 4, 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 'f76b9251a9a27f131825bf22accb99c9d7afb960';

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/f76b9251a9a27f131825bf22accb99c9d7afb960" > f76b9251a9a27f131825bf22accb99c9d7afb960.plan.hcl
  2. Modify the plan.
  3. Push the plan using atlas schema plan push --pending --env --file f76b9251a9a27f131825bf22accb99c9d7afb960.plan.hcl

@datdao
Copy link
Member Author

datdao commented Oct 4, 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 '63952ede574fb5ee660cf54d0c6b5c6fea6c1b77';

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/63952ede574fb5ee660cf54d0c6b5c6fea6c1b77" > 63952ede574fb5ee660cf54d0c6b5c6fea6c1b77.plan.hcl
  2. Modify the plan.
  3. Push the plan using atlas schema plan push --pending --env --file 63952ede574fb5ee660cf54d0c6b5c6fea6c1b77.plan.hcl

@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 'a496a03f5d286b23f57794e1dcf26fa299d045eb';

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/a496a03f5d286b23f57794e1dcf26fa299d045eb" > a496a03f5d286b23f57794e1dcf26fa299d045eb.plan.hcl
  2. Modify the plan.
  3. Push the plan using atlas schema plan push --pending --env --file a496a03f5d286b23f57794e1dcf26fa299d045eb.plan.hcl

@datdao datdao marked this pull request as ready for review October 7, 2024 06:17
@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 '41bba5583a6799587791300075cfc2468d9885c9';

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/41bba5583a6799587791300075cfc2468d9885c9" > 41bba5583a6799587791300075cfc2468d9885c9.plan.hcl
  2. Modify the plan.
  3. Push the plan using atlas schema plan push --pending --env --file 41bba5583a6799587791300075cfc2468d9885c9.plan.hcl

@datdao datdao mentioned this pull request Oct 7, 2024
@datdao datdao merged commit 6d0b722 into master Oct 7, 2024
23 checks passed
@datdao datdao deleted the d/schema-apply branch October 7, 2024 09:41
datdao added a commit that referenced this pull request Oct 7, 2024
<img width="1215" alt="Screenshot 2024-10-07 at 14 55 53"
src="https://github.com/user-attachments/assets/52bdaa5e-0673-468d-8b74-fd386c491756">
Note: this PR depend on #25
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