From 53c417b38c719359338e433e43872f50d26d033e Mon Sep 17 00:00:00 2001 From: Andrew vonderLuft Date: Sat, 14 Dec 2024 18:46:22 -0800 Subject: [PATCH] add ComfortableMediaSurfer notice --- README.md | 4 ++++ db/convert_to_comfy.sql | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 db/convert_to_comfy.sql diff --git a/README.md b/README.md index 2b068652..1ab745dd 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ [![Gem Downloads](https://img.shields.io/gem/dt/occams.svg?style=flat)](http://rubygems.org/gems/occams) [![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/avonderluft/occams?label=last%20release&color=seagreen)](https://github.com/avonderluft/occams/releases) +## NOTICE + +Occams is being retired in favor of [ComfortableMediaSurfer](https://github.com/shakacode/comfortable-media-surfer), which follows in the stream of [ComfortableMexicanSofa](https://github.com/comfy/comfortable-mexican-sofa) with all of its commit history. To convert your existing Occams project to ComfortableMediaSurfer, run this [SQL](/db/convert_to_comfy.sql) + ***Prefer Simplicity.*** diff --git a/db/convert_to_comfy.sql b/db/convert_to_comfy.sql new file mode 100644 index 00000000..e1a976ba --- /dev/null +++ b/db/convert_to_comfy.sql @@ -0,0 +1,16 @@ +ALTER TABLE occams_cms_categories RENAME TO comfy_cms_categories; +ALTER TABLE occams_cms_categorizations RENAME TO comfy_cms_categorizations; +ALTER TABLE occams_cms_files RENAME TO comfy_cms_files; +ALTER TABLE occams_cms_fragments RENAME TO comfy_cms_fragments; +ALTER TABLE occams_cms_layouts RENAME TO comfy_cms_layouts; +ALTER TABLE occams_cms_pages RENAME TO comfy_cms_pages; +ALTER TABLE occams_cms_revisions RENAME TO comfy_cms_revisions; +ALTER TABLE occams_cms_sites RENAME TO comfy_cms_sites; +ALTER TABLE occams_cms_snippets RENAME TO comfy_cms_snippets; +ALTER TABLE occams_cms_translations RENAME TO comfy_cms_translations; +UPDATE comfy_cms_fragments SET record_type = 'Comfy::Cms::Page' WHERE record_type = 'Occams::Cms::Page'; +UPDATE comfy_cms_fragments SET record_type = 'Comfy::Cms::Layout' WHERE record_type = 'Occams::Cms::Layout'; +UPDATE comfy_cms_fragments SET record_type = 'Comfy::Cms::Snippet' WHERE record_type = 'Occams::Cms::Snippet'; +UPDATE comfy_cms_revisions SET record_type = 'Comfy::Cms::Page' WHERE record_type = 'Occams::Cms::Page'; +UPDATE comfy_cms_revisions SET record_type = 'Comfy::Cms::Layout' WHERE record_type = 'Occams::Cms::Layout'; +UPDATE comfy_cms_revisions SET record_type = 'Comfy::Cms::Snippet' WHERE record_type = 'Occams::Cms::Snippet'; \ No newline at end of file