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

Test /ps-attach and /ps-update #21

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

jonico
Copy link
Owner

@jonico jonico commented May 18, 2022

Fixes #20

@jonico
Copy link
Owner Author

jonico commented May 18, 2022

/ps-attach https://app.planetscale.com/planetscale-demo/matrix-demos-jonico/deploy-requests/111

@github-actions
Copy link

👋 jonico, attaching deploy request https://app.planetscale.com/planetscale-demo/matrix-demos-jonico/deploy-requests/111 to Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

Deploy request and DB branch attached successfully 🎉

💻 pscale CLI commands for local access
pscale shell "matrix-demos-jonico" "combined-key" --org "planetscale-demo"
pscale connect "matrix-demos-jonico" "combined-key" --org "planetscale-demo"
📖 Calculated schema changes:

-CREATE TABLE `tutorial_tbl` (
-  `tutorial_id` int NOT NULL AUTO_INCREMENT,
-  `tutorial_title` varchar(100) NOT NULL,
-  `tutorial_author` varchar(40) NOT NULL,
-  `submission_date` date DEFAULT NULL,
-  PRIMARY KEY (`tutorial_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

@jonico
Copy link
Owner Author

jonico commented May 18, 2022

/ps-update

@github-actions
Copy link

👋 jonico, updating information of Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

Updated database branch (info) successfully 🎉

💻 pscale CLI commands for local access
pscale shell "matrix-demos-jonico" "combined-key" --org "planetscale-demo"
pscale connect "matrix-demos-jonico" "combined-key" --org "planetscale-demo"
📖 Calculated schema changes:

-CREATE TABLE `tutorial_tbl` (
-  `tutorial_id` int NOT NULL AUTO_INCREMENT,
-  `tutorial_title` varchar(100) NOT NULL,
-  `tutorial_author` varchar(40) NOT NULL,
-  `submission_date` date DEFAULT NULL,
-  PRIMARY KEY (`tutorial_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

 CREATE TABLE `pixel_matrix` (
   `id` bigint NOT NULL,
   `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`),
   KEY `id` (`id`,`environment`),
-  KEY `environment_2` (`environment`,`id`),
-  KEY `environment_3` (`environment`,`id`),
-  KEY `id_2` (`id`,`environment`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

@jonico
Copy link
Owner Author

jonico commented May 18, 2022

/ps-update "ALTER TABLE pixel_matrix ADD COLUMN counter BIGINT NOT NULL DEFAULT 1;"

@github-actions
Copy link

👋 jonico, updating information and database schema of Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

github-actions bot commented May 18, 2022

Updating failed for branch test-ps-attach-and-update 😢. View error logs.

Timed out

@jonico
Copy link
Owner Author

jonico commented May 18, 2022

/ps-update "ALTER TABLE swag_winners ADD COLUMN counter BIGINT NOT NULL DEFAULT 1"

@github-actions
Copy link

👋 jonico, updating information and database schema of Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

github-actions bot commented May 18, 2022

Updating failed for branch test-ps-attach-and-update 😢. View error logs.

No keyspace selected

@jonico
Copy link
Owner Author

jonico commented May 18, 2022

/ps-update "use matrix-demos-jonico; ALTER TABLE swag_winners ADD COLUMN counter BIGINT NOT NULL DEFAULT 1"

@github-actions
Copy link

👋 jonico, updating information and database schema of Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

Updated database branch (info) successfully 🎉

💻 pscale CLI commands for local access
pscale shell "matrix-demos-jonico" "combined-key" --org "planetscale-demo"
pscale connect "matrix-demos-jonico" "combined-key" --org "planetscale-demo"
📖 Calculated schema changes:

 CREATE TABLE `swag_winners` (
   `issue_id` bigint NOT NULL,
   `example_url` varchar(255) NOT NULL,
   `tweet_url` varchar(255) NOT NULL,
+  `counter` bigint NOT NULL DEFAULT '1',
   PRIMARY KEY (`issue_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-CREATE TABLE `tutorial_tbl` (
-  `tutorial_id` int NOT NULL AUTO_INCREMENT,
-  `tutorial_title` varchar(100) NOT NULL,
-  `tutorial_author` varchar(40) NOT NULL,
-  `submission_date` date DEFAULT NULL,
-  PRIMARY KEY (`tutorial_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

 CREATE TABLE `pixel_matrix` (
   `id` bigint NOT NULL,
   `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`),
   KEY `id` (`id`,`environment`),
-  KEY `environment_2` (`environment`,`id`),
-  KEY `environment_3` (`environment`,`id`),
-  KEY `id_2` (`id`,`environment`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

@jonico jonico mentioned this pull request May 18, 2022
@jonico
Copy link
Owner Author

jonico commented Jun 1, 2022

/ps-create tabs-test "ALTER TABLE hp_character DROP is_wizard, DROP ancestry, DROP wand_id, DROP patronus, DROP is_hogwarts_student, DROP is_hogwarts_staff;"

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Script .pscale/env/ps-env-test-ps-attach-and-update.sh already exists, please use /ps-update "<DDL>" to update existing env.

@jonico
Copy link
Owner Author

jonico commented Jun 1, 2022

/ps-delete

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

👋 jonico, deleting DB branch associated with Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Deleted database branch successfully 🎉

  • 🌱 DB-Branch: combined-key

@jonico
Copy link
Owner Author

jonico commented Jun 1, 2022

/ps-create "ALTER TABLE pixel_matrix ADD COLUMN counter BIGINT NOT NULL DEFAULT 1;"

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Script .pscale/env/ps-env-test-ps-attach-and-update.sh already exists, please use /ps-update "<DDL>" to update existing env.

@jonico
Copy link
Owner Author

jonico commented Jun 1, 2022

/ps-create "ALTER TABLE pixel_matrix ADD COLUMN counter BIGINT NOT NULL DEFAULT 1;"

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

👋 jonico, creating DB branch test-ps-attach-and-update for Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Creating PS branch and DR failed for branch test-ps-attach-and-update 😢. View error logs.

@jonico
Copy link
Owner Author

jonico commented Jun 1, 2022

/ps-create "ALTER TABLE hp_character DROP is_wizard, DROP ancestry, DROP wand_id, DROP patronus, DROP is_hogwarts_student, DROP is_hogwarts_staff;"

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

👋 jonico, creating DB branch test-ps-attach-and-update for Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Database branch and deploy request created successfully 🎉

💻 pscale CLI commands for local access
pscale shell "harry-potter-jonico" "test-ps-attach-and-update" --org "planetscale-demo"
pscale connect "harry-potter-jonico" "test-ps-attach-and-update" --org "planetscale-demo"
📖 Calculated schema changes:

 CREATE TABLE `hp_character` (
 %09`id` int NOT NULL AUTO_INCREMENT,
 %09`full_name` varchar(240),
 %09`species` varchar(40),
 %09`gender` varchar(40),
 %09`house` varchar(40),
 %09`date_of_birth` varchar(40),
 %09`year_of_birth` int unsigned,
-%09`is_wizard` tinyint(1),
-%09`ancestry` varchar(40),
 %09`eye_colour` varchar(40),
 %09`hair_colour` varchar(40),
-%09`wand_id` int,
-%09`patronus` varchar(40),
-%09`is_hogwarts_student` tinyint(1),
-%09`is_hogwarts_staff` tinyint(1),
 %09`is_alive` tinyint(1),
 %09`image` varchar(240),
 %09PRIMARY KEY (`id`)
 ) ENGINE InnoDB,
   CHARSET utf8mb4,
   COLLATE utf8mb4_0900_ai_ci;

@jonico
Copy link
Owner Author

jonico commented Jun 1, 2022

/ps-update

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

👋 jonico, updating information of Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Updated database branch (info) successfully 🎉

💻 pscale CLI commands for local access
pscale shell "harry-potter-jonico" "test-ps-attach-and-update" --org "planetscale-demo"
pscale connect "harry-potter-jonico" "test-ps-attach-and-update" --org "planetscale-demo"
📖 Calculated schema changes:

 CREATE TABLE `hp_character` (
  `id` int NOT NULL AUTO_INCREMENT,
  `full_name` varchar(240),
  `species` varchar(40),
  `gender` varchar(40),
  `house` varchar(40),
  `date_of_birth` varchar(40),
  `year_of_birth` int unsigned,
- `is_wizard` tinyint(1),
- `ancestry` varchar(40),
  `eye_colour` varchar(40),
  `hair_colour` varchar(40),
- `wand_id` int,
- `patronus` varchar(40),
- `is_hogwarts_student` tinyint(1),
- `is_hogwarts_staff` tinyint(1),
  `is_alive` tinyint(1),
  `image` varchar(240),
  PRIMARY KEY (`id`)
 ) ENGINE InnoDB,
   CHARSET utf8mb4,
   COLLATE utf8mb4_0900_ai_ci;

@jonico
Copy link
Owner Author

jonico commented Mar 12, 2024

/ps-update "ALTER TABLE swag_winners ADD COLUMN counter BIGINT NOT NULL DEFAULT 1"

Copy link

👋 jonico, updating information and database schema of Git branch test-ps-attach-and-update now ...

You can watch the progress and authorize access here.

Copy link

Updating failed for branch test-ps-attach-and-update 😢. View error logs.

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.

Branch diff is always null
1 participant