• 0
Nerexis

Bug in Exile.ini preventing old constructions etc. to be deleted

Question

Bugged query prevents Exile from deleting some constructions marked as deleted (probably the ones without territory assigned), because it unmarks deleted_at field in constructions/containers table due to logic error (I'm using ext3 version of ini):


Update your "markDeleteUnpaidTerritories" query to:

; Marks territories (and all containers/constructions) that were not paid within ? days as deleted
[markDeleteUnpaidTerritories]
SQL1_1 = UPDATE territory SET deleted_at = NOW() WHERE last_paid_at < DATE_SUB(NOW(), INTERVAL ?) AND deleted_at IS NULL
SQL2_1 = UPDATE construction SET deleted_at = NOW() WHERE EXISTS (select deleted_at from territory where territory.id=construction.territory_id and territory.deleted_at IS NOT NULL)
SQL3_1 = UPDATE container SET deleted_at = NOW() WHERE EXISTS (select deleted_at from territory where territory.id=container.territory_id and territory.deleted_at IS NOT NULL)

SQL1_INPUTS = 1
	
Edited by Nerexis

Share this post


Link to post
Share on other sites

0 answers to this question

There have been no answers to this question yet

Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.