forked from chaosarium/lwt
-
-
Notifications
You must be signed in to change notification settings - Fork 25
Replace $tbpref #164
Copy link
Copy link
Closed
Labels
databaseDatabase-related issuesDatabase-related issuesenhancementDevelop an existing featureDevelop an existing feature
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
databaseDatabase-related issuesDatabase-related issuesenhancementDevelop an existing featureDevelop an existing feature
Projects
- StatusShow more project fieldsDone
$tbprefshort for "table prefix", was a hacky way to add a multi-user system in LWT. By prefixing any table (e. g.: "_Words" instead or "Words") it allows to create a table custom table for each user.However, $tbpref is managed by PHP, which leads to several issues:
For those reason I was looking for a replacement, here is the current alternative. A new database "Users", with "ID" and "Name" dimensions. "Name" should store the value of the old
$tbpref. Every relation would have a new column with the users ID of the word.In short we would come from:
To
A bit longer but much cleaner. At the current development level, I am very open to any suggestion or alternative, so don't hesitate to comment!