weaondara / BungeePerms

A permissions plugin for BungeeCord/Waterfall/Velocity and Spigot/Paper
GNU General Public License v3.0
52 stars 44 forks source link

Database Design #248

Closed Serializator closed 5 years ago

Serializator commented 8 years ago

Please... Improve your database design!

weaondara commented 8 years ago

just complaining will not improve it ... make suggestions

Serializator commented 8 years ago

A database isn't the same as a configuration file with a path, use separate tables/columns for data and normalize it.

You're literally using paths in a database...

weaondara commented 8 years ago

did you try the mysql2 bsackend? it uses mysql ... just to clearify that

Serializator commented 8 years ago

It's not what I'm talking about, I'm talking about your database design/structure. The only columns you have are "key" and "value" and you use paths such as (example) "groups.test.prefix" as the key and the prefix as the value.

You could split your current table/columns into (example):

And use foreign keys to reference a row in the "groups" table from "group_permissions".

ducc commented 8 years ago

my s q l = relational database use it as a relational database

Serializator commented 8 years ago

What's with the spacing @Sponges x-)

ducc commented 8 years ago

Stop BUllyINg mE @Serializator

aurorasmiles commented 5 years ago

This was the old backend, which is now deprecated. Please use MySQL2 as a backend.