From ba88bbf6bd77671902242a2f0fd0c7af487b5b01 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 6 May 2019 08:04:57 +0200 Subject: [PATCH] Add migration to change user_id to customuser_id in legacy code Pertains to djangocms_blog --- ...ange_user_id_to_customer_id_in_djangocms_blog.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 membership/migrations/0008_change_user_id_to_customer_id_in_djangocms_blog.py diff --git a/membership/migrations/0008_change_user_id_to_customer_id_in_djangocms_blog.py b/membership/migrations/0008_change_user_id_to_customer_id_in_djangocms_blog.py new file mode 100644 index 00000000..4a8530e9 --- /dev/null +++ b/membership/migrations/0008_change_user_id_to_customer_id_in_djangocms_blog.py @@ -0,0 +1,13 @@ +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [('membership', '0007_auto_20180213_0128'), + ('djangocms_blog', '0032_auto_20180109_0023'), + ] + + operations = [ + migrations.RunSQL( + "ALTER TABLE djangocms_blog_authorentriesplugin_authors " + "RENAME COLUMN user_id TO customuser_id;"), + ]