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

Database Submodule under Version-Control #1

Open
ko4life-psko opened this issue Oct 11, 2020 · 3 comments
Open

Database Submodule under Version-Control #1

ko4life-psko opened this issue Oct 11, 2020 · 3 comments

Comments

@ko4life-psko
Copy link
Member

Since there will be a lot of database editing, there is a need to automate the process of putting the db changes under git.
e.g. creating a script that will use MSSQL's exporter to dump all the database as alter scripts including content. More details regarding this can be found here.

The process should be relatively easy and will allow to track each table changes in a separate file, so new users don't need to restore a .bak file, rather run a script that will import the database from the generated script.

@brzezinski-grzegorz
Copy link
Collaborator

So maybe we should create additional folder with Database and post just scripts as *.sql files with information about them as comments?

@ko4life-psko
Copy link
Member Author

ko4life-psko commented Oct 11, 2020

So maybe we should create additional folder with Database and post just scripts as *.sql files with information about them as comments?

Exactly, but the scripts should be generated automatically in another repository. Separating it into modules making it easier to collaborate.

@stevewgr
Copy link
Member

In case you're still working on this, we implemented something similar in here: https://github.com/stevewgr/ko-db

basically we build the db from scripts with a script.

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

3 participants