move migration scripts

This commit is contained in:
Your Name 2023-01-11 00:55:08 -05:00
parent 915f8bebb7
commit ec12e3752e
11 changed files with 19 additions and 1 deletions

0
upgrade_0_5/__init__.py Normal file
View file

3
upgrade_0_5/admin.py Normal file
View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
upgrade_0_5/apps.py Normal file
View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class Upgrade05Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'upgrade_0_5'

View file

@ -281,7 +281,7 @@ class Command(BaseCommand):
)
ShelfLogEntry.objects.create(
owner_id=user_id,
shelf_id=shelf,
shelf_type=shelf.shelf_type,
item_id=item_id,
timestamp=created_time,
)

3
upgrade_0_5/models.py Normal file
View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
upgrade_0_5/tests.py Normal file
View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
upgrade_0_5/views.py Normal file
View file

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.