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

add-operation-column-and-index #2

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Nov 25, 2021

This PR contains the code changes needed to go along with the following database changes:

📜 Proposed DDL-Statements:
alter table pixel_matrix add column operation varchar(10) default NULL; create index environment_operation on pixel_matrix(environment, operation);
📖 Calculated schema changes:
 CREATE TABLE `pixel_matrix` (
   `id` bigint NOT NULL AUTO_INCREMENT,
   `environment` varchar(10) NOT NULL,
   `cell` varchar(10) NOT NULL,
   `pixel_data` longtext NOT NULL,
+  `operation` varchar(10) DEFAULT NULL,
   PRIMARY KEY (`id`),
   KEY `environment` (`environment`),
   KEY `cell` (`cell`),
+  KEY `environment_operation` (`environment`,`operation`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

If you are ok with the schema changes and have carefully reviewed them, you can merge them with a /ps-merge comment

@jonico
Copy link
Owner

jonico commented Nov 25, 2021

/ps-merge

@github-actions
Copy link
Author

👋 jonico, trying to merge schema changes associated with database branch add-operation-column-and-index now ...

You can watch the progress and authorize access here.

@github-actions github-actions bot deployed to jonico/matrix-demos-jonico/add-operation-column-and-index November 25, 2021 23:16 Active
@github-actions
Copy link
Author

Schema changes merged successfully 🎉

🚀 Schema changes applied
 CREATE TABLE `pixel_matrix` (
   `id` bigint NOT NULL AUTO_INCREMENT,
   `environment` varchar(10) NOT NULL,
   `cell` varchar(10) NOT NULL,
   `pixel_data` longtext NOT NULL,
+  `operation` varchar(10) DEFAULT NULL,
   PRIMARY KEY (`id`),
   KEY `environment` (`environment`),
   KEY `cell` (`cell`),
+  KEY `environment_operation` (`environment`,`operation`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

@github-actions github-actions bot force-pushed the add-operation-column-and-index branch from e123e06 to bbfcf0e Compare November 29, 2021 22:45
@jonico jonico closed this Dec 1, 2021
@jonico jonico mentioned this pull request Dec 7, 2021
1 task
@jonico jonico deleted the add-operation-column-and-index branch December 7, 2021 11:48
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