The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Add migrate.sql to migrate old database content

Gergely Polonkai 9 years ago
parent 3b485aaebc
commit b786a44439
  1. 6

@ -0,0 +1,6 @@
-- This script is for migrating the database of the old Symfony site database to Django
UPDATE django_site SET domain = '', name = '' WHERE id = 1;
INSERT INTO taggit_tag (id, name, slug) SELECT id, name, slug FROM tags;
INSERT INTO taggit_taggeditem (id, tag_id, object_id, content_type_id) SELECT, tagging.tag_id, tagging.resource_id, FROM tagging, django_content_type WHERE = 'post' AND django_content_type.app_label = 'blog';
INSERT INTO blog_post (id, user_id, created_at, title, slug, content, draft) SELECT id, user_id, created_at, title, slug, content, draft FROM blog_posts;
INSERT INTO blog_codechunk (id, language, created_at, title, slug, description, content) SELECT id, language, NOW(), title, slug, description, content FROM code_chunks;