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

Rely on evelovedfrom property instead of a slug #270

Merged
merged 9 commits into from
Feb 22, 2017

Conversation

takeit
Copy link
Contributor

@takeit takeit commented Feb 22, 2017

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Changelog update required yes
Fixed tickets SWP-589
License AGPLv3

@takeit takeit merged commit 5ea0e0a into superdesk:master Feb 22, 2017
@takeit takeit deleted the swp-589 branch February 22, 2017 17:44
$this->addSql('ALTER TABLE swp_item ADD evolved_from VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE swp_package ADD evolved_from VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE swp_article ADD code VARCHAR(255) DEFAULT NULL');
$this->addSql('UPDATE swp_article SET code = md5(random()::text)');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It creates issues, after that you can't update article as is no longer recognized and Publisher want's to create new one with this same slug (and it throws exception). As in real article createion we use guuid here initially then also here we should fill it with guid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants