Skip to content

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

Open
jonico wants to merge 7 commits into
mainfrom
test-ps-attach-and-update
Open

Test /ps-attach and /ps-update#21
jonico wants to merge 7 commits into
mainfrom
test-ps-attach-and-update

Conversation

@jonico

@jonico jonico commented May 18, 2022

Copy link
Copy Markdown
Owner

Fixes #20

@jonico

jonico commented May 18, 2022

Copy link
Copy Markdown
Owner Author

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

@github-actions

Copy link
Copy Markdown

👋 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
Copy Markdown

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

jonico commented May 18, 2022

Copy link
Copy Markdown
Owner Author

/ps-update

@github-actions

Copy link
Copy Markdown

👋 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
Copy Markdown

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

jonico commented May 18, 2022

Copy link
Copy Markdown
Owner Author

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

@github-actions

Copy link
Copy Markdown

👋 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

github-actions Bot commented May 18, 2022

Copy link
Copy Markdown

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

Timed out

@jonico

jonico commented May 18, 2022

Copy link
Copy Markdown
Owner Author

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

@github-actions

Copy link
Copy Markdown

👋 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

github-actions Bot commented May 18, 2022

Copy link
Copy Markdown

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

No keyspace selected

@jonico

jonico commented May 18, 2022

Copy link
Copy Markdown
Owner Author

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

@github-actions

Copy link
Copy Markdown

👋 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
Copy Markdown

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

jonico commented Jun 1, 2022

Copy link
Copy Markdown
Owner Author

/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

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

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

@jonico

jonico commented Jun 1, 2022

Copy link
Copy Markdown
Owner Author

/ps-delete

@github-actions

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

👋 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

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

Deleted database branch successfully 🎉

  • 🌱 DB-Branch: combined-key

@jonico

jonico commented Jun 1, 2022

Copy link
Copy Markdown
Owner Author

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

@github-actions

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

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

@jonico

jonico commented Jun 1, 2022

Copy link
Copy Markdown
Owner Author

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

@github-actions

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

👋 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

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

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

@jonico

jonico commented Jun 1, 2022

Copy link
Copy Markdown
Owner Author

/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

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

👋 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

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

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

jonico commented Jun 1, 2022

Copy link
Copy Markdown
Owner Author

/ps-update

@github-actions

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

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

You can watch the progress and authorize access here.

@github-actions

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown

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

jonico commented Mar 12, 2024

Copy link
Copy Markdown
Owner Author

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

@github-actions

Copy link
Copy Markdown

👋 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
Copy Markdown

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