Update makefile

This commit is contained in:
Oliver Walters 2019-04-28 08:42:17 +10:00
parent 5b6ba0bb8b
commit 2108ee2eb7
4 changed files with 42 additions and 4 deletions

View File

@ -9,7 +9,8 @@ addons:
-sqlite3
before_install:
- make setup
- make install
- make migrate
script:
- make coverage

View File

@ -0,0 +1,19 @@
# Generated by Django 2.2 on 2019-04-27 22:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('part', '0010_auto_20190417_0045'),
]
operations = [
migrations.AlterField(
model_name='supplierpart',
name='supplier',
field=models.ForeignKey(limit_choices_to={'is_supplier': True}, on_delete=django.db.models.deletion.CASCADE, related_name='parts', to='company.Company'),
),
]

View File

@ -0,0 +1,19 @@
# Generated by Django 2.2 on 2019-04-27 22:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('stock', '0008_auto_20190417_1819'),
]
operations = [
migrations.AlterField(
model_name='stockitem',
name='location',
field=models.ForeignKey(blank=True, help_text='Where is this stock item located?', null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='stock_items', to='stock.StockLocation'),
),
]

View File

@ -19,7 +19,8 @@ install:
pip install -U -r requirements.txt
python InvenTree/keygen.py
setup: install migrate
superuser:
python InvenTree/manage.py createsuperuser
style:
flake8 InvenTree
@ -37,5 +38,3 @@ documentation:
pip install -U -r docs/requirements.txt
cd docs & make html
superuser:
python InvenTree/manage.py createsuperuser