Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate #81

Open
AndrewDryga opened this issue Jul 26, 2012 · 1 comment
Open

Migrate #81

AndrewDryga opened this issue Jul 26, 2012 · 1 comment

Comments

@AndrewDryga
Copy link
Contributor

Migration tool не правильное обрабатывает ситуации со сбросом значения по умолчанию, в одной с миграций он забыл поставить точки с запятыми после
ALTER TABLE newsALTERctime DROP DEFAULT

@AndrewDryga
Copy link
Contributor Author

Ещё один пример:

SET FOREIGN_KEY_CHECKS = 0;

ALTER TABLE `day` ADD `occupation` varchar(255) NOT NULL DEFAULT '' COMMENT '' COLLATE utf8_general_ci AFTER location;
ALTER TABLE `day` DROP `description`;


ALTER TABLE `user_settings` ALTER `social_share_twitter` SET DEFAULT 1#
#  Fieldformat of 'user_settings.social_share_twitter' changed from 'int(1) unsigned NOT NULL DEFAULT '0' COMMENT '' to int(1) unsigned NOT NULL DEFAULT '1' COMMENT ''. Possibly data modifications needed!
#



SET FOREIGN_KEY_CHECKS = 1;

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

No branches or pull requests

1 participant