Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wing_db.pl --install --ok doesn't recreate admin #1

Open
rizen opened this issue Jan 19, 2013 · 1 comment
Open

wing_db.pl --install --ok doesn't recreate admin #1

rizen opened this issue Jan 19, 2013 · 1 comment
Assignees

Comments

@rizen
Copy link
Member

rizen commented Jan 19, 2013

I blew away my database with --install --ok, but it didn't recreate admin.

@perlDreamer
Copy link
Contributor

The scripts that are run on install (aka deploy) are stored in: dbicdh/_common/deploy/VERSION

If there are no scripts in there, then you wouldn't get an admin user or apikey.

Part of this is due to changing how --install worked. It always used to install version 1, and then you would have to upgrade to get to the current version. The change in the user database (adding password_salt) broke that, since the code tried to install a column that doesn't exist in earlier versions of the schema. Now, the install files would need to be copied into every VERSIONS's deploy folder, or, install an earlier version and run an upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants