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

Remove unused tables and columns #1099

Merged
merged 4 commits into from
Nov 22, 2023
Merged

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Nov 16, 2023

Description

Following on from #1093, we can now remove all unused tables and columns that were previously used for access checks in Postgres.

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

@kian99 kian99 force-pushed the remove-unused-tables branch from b9ae714 to 87792fd Compare November 16, 2023 10:58
Copy link
Collaborator

@alesstimec alesstimec left a comment

Choose a reason for hiding this comment

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

Question about the schema version.

ALTER TABLE users DROP COLUMN controller_access;
ALTER TABLE users DROP COLUMN audit_log_access;

UPDATE versions SET major=1, minor=4 WHERE component='jimmdb';
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't we increase the minor? and for sqlite as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It has been increased, the previous migration was 1.3

@kian99 kian99 merged commit 32c8e46 into canonical:v3 Nov 22, 2023
2 checks passed
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.

3 participants