> Den 25. aug. 2016 kl. 17.09 skrev RompePC <durillo19942013@gmail.com>:
>
> I did a migration of Django, and then applied a sqlmigrate, giving me this output...
>
> BEGIN;
> --
> -- Remove field my_column from my_table
> --
> ALTER TABLE `my_table` DROP COLUMN `my_column` CASCADE;
>
> I don't find info about it, and I've never seen something like this in my MySQL experience. And the best part is that works (although it is marked as a syntax error). Can anyone throw me some light about it?
Are you using MySQL as your backend? I believe that syntax is only for postgresql. CASCADE defines what to do if anything outside the table references the column. CASCADE will drop these references.
Erik
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/809BE9C3-9AAD-43B5-818F-D1E6AA3E1ADB%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment