Replaced unixid with uid-/gidnumber (glauth v2.0)#17
Replaced unixid with uid-/gidnumber (glauth v2.0)#17zeo101 wants to merge 1 commit intosonicnkt:mainfrom
Conversation
|
hey thanks for the info and the code. It might be possible to create a migration script which does this automatically. Well lots of stuff do do here :) |
|
Ok i merge your pr into a new branch (glauth-2.X), here i also updated the python environment (3.9) and all libraries. We should be able to alter the table names with the following in the flask migrate file See Commit: def upgrade():
op.alter_column('user', 'unixid', nullable=False, new_column_name='uidnumber')
op.alter_column('group', 'unixid', nullable=False, new_column_name='gidnumber')
# TODO foreign keysBut we also have to update the foreign keys in the user, included_groups and othergroups_users table. This is definatly possible but i haven't figured it out yet to do this without losing any existing data/connections. |
Hey Nils,
since glauth v2.0.0 complains about unixid being deprecated I replaced it with uidnumber and gidnumber accordingly.
To be consistent, I also changed the db column names in the group and user table.
So if you have an existing setup, you need to rename the sqlite columns using dbeaver for example.