conrad-blucher-institute / semaphore

Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

277 write migration script for adding api user accounts #472

Open lovelysandlonelys opened 3 weeks ago

lovelysandlonelys commented 3 weeks ago

After some discussion we think it's better to approach adding the user accounts as a manual process rather than as a database migration. As such this now includes a script to add the three user accounts, after which the ENV would be changed to reflect these connection strings.

To Test: python3 tools/init_db_users.py --api-user "api_user" --api-password "api_password" --core-user "core_user" --core-password "core_password" --general-user "general_user" --general-password "general_password"

abeasley1722 commented 3 weeks ago

Will need to change the database version depending on whose code is ready first.