mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Simplify Django organization, add South support.
This commit is contained in:
36
acom/main/migrations/0001_initial.py
Normal file
36
acom/main/migrations/0001_initial.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
# Adding model 'Inventory'
|
||||
db.create_table('inventory', (
|
||||
('name', self.gf('django.db.models.fields.TextField')()),
|
||||
('description', self.gf('django.db.models.fields.TextField')()),
|
||||
('creation_date', self.gf('django.db.models.fields.DateField')()),
|
||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||
))
|
||||
db.send_create_signal('main', ['Inventory'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
# Deleting model 'Inventory'
|
||||
db.delete_table('inventory')
|
||||
|
||||
|
||||
models = {
|
||||
'main.inventory': {
|
||||
'Meta': {'object_name': 'Inventory', 'db_table': "'inventory'"},
|
||||
'creation_date': ('django.db.models.fields.DateField', [], {}),
|
||||
'description': ('django.db.models.fields.TextField', [], {}),
|
||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||
'name': ('django.db.models.fields.TextField', [], {})
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['main']
|
||||
Reference in New Issue
Block a user