Skip to content

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Aug 22, 2025

Migration:

CREATE TABLE package_readme (package_id INT NOT NULL, contents LONGTEXT NOT NULL, PRIMARY KEY (package_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci`;
ALTER TABLE package_readme ADD CONSTRAINT FK_B9CEF52FF44CABFF FOREIGN KEY (package_id) REFERENCES package (id) ON DELETE CASCADE;

INSERT INTO package_readme (package_id, contents)
SELECT id, readme
FROM package
WHERE readme IS NOT NULL AND readme != '';

-- deploy here

ALTER TABLE package DROP COLUMN readme;

@Seldaek Seldaek merged commit 1ed4a9b into composer:main Aug 28, 2025
3 checks passed
@Seldaek Seldaek deleted the readme_join branch August 28, 2025 12:53
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