mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
74c4791440
commit
61445f8b1a
47
plinth/migrations/0001_initial.py
Normal file
47
plinth/migrations/0001_initial.py
Normal 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()),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
||||||
0
plinth/migrations/__init__.py
Normal file
0
plinth/migrations/__init__.py
Normal file
Loading…
x
Reference in New Issue
Block a user