Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove Event #100

Closed
mg-1999 opened this issue Feb 14, 2016 · 6 comments
Closed

Remove Event #100

mg-1999 opened this issue Feb 14, 2016 · 6 comments
Assignees
Milestone

Comments

@mg-1999
Copy link
Contributor

mg-1999 commented Feb 14, 2016

Is there a way to remove an event completely from the software? Because I cant find it.

@cbellone
Copy link
Member

Hi @mg-1999
no, there isn't yet a way to delete an event. We are planning to add a "visible" flag. Would that be enough?

@mg-1999
Copy link
Contributor Author

mg-1999 commented Feb 16, 2016

It does the job if you only have a few events, but it stacks up eventually. So a true removal would be a nice addition to the software.

@cbellone cbellone added this to the 1.8 milestone Feb 16, 2016
@cbellone
Copy link
Member

OK then, we'll try to schedule it for the release 1.8.
Thanks a lot!

@syjer syjer self-assigned this May 6, 2016
@syjer
Copy link
Member

syjer commented May 7, 2016

current queries (and potentially not in the correct order... :D)

delete from waiting_queue where event_id = 0;
delete from plugin_log where event_id = 0;
delete from plugin_configuration where event_id = 0;
delete from configuration_event where event_id_fk = 0;
delete from configuration_ticket_category where event_id_fk = 0;
delete from email_message where event_id = 0
delete from ticket_field_value where ticket_field_configuration_id_fk in (select id from ticket_field_configuration where event_id_fk = 0);
delete from ticket_field_description where ticket_field_configuration_id_fk in (select id from ticket_field_configuration where event_id_fk = 0);
delete from ticket_field_configuration where event_id_fk= 0;
delete from event_migration where event_id = 0;
delete from sponsor_scan where event_id = 0;
delete from ticket where event_id = 0;
-- tickets_reservation will remain in the system though
update tickets_reservation set promo_code_id_fk = null where promo_code_id_fk in (select id from promo_code where event_id_fk = 0);
delete from promo_code where event_id_fk = 0;
delete from ticket_category_text where ticket_category_id_fk in (select id from ticket_category where event_id = 0)
delete from ticket_category where event_id = 0;
delete from event_description_text where event_id_fk  = 0;
delete from event where id = 0;

@syjer
Copy link
Member

syjer commented May 8, 2016

note: SPECIAL_PRICE.ticket_category_id does not have an active FK constraint

@syjer
Copy link
Member

syjer commented Jun 20, 2016

finally implemented :)

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

No branches or pull requests

3 participants