The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
[Question] Using Constraints on the Database
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Tepoo
Hey guys,
i had the following problem on my server.
i created two test accounts with sensless names, created character and logged in. after i saw that it worked, i deleted the accounts in the database login.
i created then two new accounts and logged in. when i was in the character selection i was the chars of the accounts with the sensless names.because i only deleted the accounts.
when i looked up into the tables i saw that you dont use constraints bewteen the keys. is there any restriction in rathena that constraints cant be used? otherwise i would setup my databse with some constraints i think who are usefull.
example: on cascade and delete for account --> character. when an accoiunts gets deleted, delete all entrys who are combined with this accountid.
greetings
Tepoo
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.