briot / geneapro

Genealogical software based on the GenTech data model
http://briot.github.com/geneapro/
GNU General Public License v2.0
33 stars 8 forks source link

The Create database portion of setup.sh is missing makemigrations. #37

Closed changeling closed 5 years ago

changeling commented 5 years ago

setup.sh fails to handle up to date migrations. the following code:

###################
# Create database #
###################

(
   cd backend
   dir=`./manage.py showconf | grep dir= | cut -d= -f2`
   mkdir -p "$dir"
   ./manage.py migrate
)

Should read:

###################
# Create database #
###################

(
   cd backend
   dir=`./manage.py showconf | grep dir= | cut -d= -f2`
   mkdir -p "$dir"
   ./manage.py makemigrations
   ./manage.py migrate
)

to avoid migration problems.

changeling commented 5 years ago

I've created https://github.com/briot/geneapro/pull/40 for this.

briot commented 5 years ago

merged