Create initial migration file for Plinth

- To automatically create a schema using syncdb is now deprecated and
  considered legacy.

- Having migrations will help us do schema upgrades in future smoothly.
This commit is contained in:
Sunil Mohan Adapa 2015-12-04 13:08:13 +05:30 committed by James Valleroy
parent 74c4791440
commit 61445f8b1a
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,47 @@
#
# This file is part of Plinth.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Generated by Django 1.9 on 2015-12-04 07:27
#
"""
Initial Django migration for Plinth to create database tables.
"""
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
"""Initial migration schema for Plinth models."""
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='KVStore',
fields=[
('key', models.TextField(primary_key=True, serialize=False)),
('value_json', models.TextField()),
],
),
]

View File