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

Assign a discount code to a specific category #112

Closed
cbellone opened this issue Mar 24, 2016 · 4 comments
Closed

Assign a discount code to a specific category #112

cbellone opened this issue Mar 24, 2016 · 4 comments

Comments

@cbellone
Copy link
Member

It should be possible to assign a discount code to a specific category, rather than to all the categories, as it is now.

@syjer
Copy link
Member

syjer commented Jul 13, 2016

TODO:

  • update queries
  • update admin
  • update user ui
  • update business logic

@bunsenmcdubbs
Copy link
Contributor

I pulled this and got this error when the start up script started a database migration

Migration V15_1.8.6__ADD_CATEGORIES_TO_PROMO_CODE.sql failed
------------------------------------------------------------
SQL State  : 42000
Error Code : 1067
Message    : Invalid default value for 'valid_to'
Location   : alfio/db/MYSQL/V15_1.8.6__ADD_CATEGORIES_TO_PROMO_CODE.sql (<path to>/alf.io/build/resources/main/alfio/db/MYSQL/V15_1.8.6__ADD_CATEGORIES_TO_PROMO_CODE.sql)
Line       : 18
Statement  : alter table promo_code add column categories varchar(2048)

I think this is the same issue as #131

I would fix it myself but I'm not sure what @cbellone did exactly.

@cbellone
Copy link
Member Author

Hi @bunsenmcdubbs

I tested the migration scripts on a clean database:

Server version: 5.7.13 MySQL Community Server (GPL)

(should be latest version available on docker hub) but I cannot reproduce your issue.

Which version are you using?

Thanks,
Celestino

@syjer
Copy link
Member

syjer commented Jul 25, 2016

should be completed.

@syjer syjer closed this as completed Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants