Kevin Veroneau avatar Kevin Veroneau committed 5d1e644

Added South migrations for project.

Comments (0)

Files changed (3)

bootstrap_theme/migrations/0001_initial.py

+# -*- 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 'Carousel'
+        db.create_table(u'bootstrap_theme_carousel', (
+            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('carousel_group', self.gf('django.db.models.fields.SlugField')(max_length=50)),
+            ('caption', self.gf('django.db.models.fields.CharField')(max_length=40)),
+            ('lead', self.gf('django.db.models.fields.TextField')()),
+            ('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
+            ('ordering', self.gf('django.db.models.fields.PositiveSmallIntegerField')()),
+            ('button_text', self.gf('django.db.models.fields.CharField')(default='Learn more', max_length=30)),
+            ('button_url', self.gf('django.db.models.fields.CharField')(default='list-machines', max_length=20)),
+            ('button_parameter', self.gf('django.db.models.fields.CharField')(max_length=40, null=True, blank=True)),
+        ))
+        db.send_create_signal(u'bootstrap_theme', ['Carousel'])
+
+
+    def backwards(self, orm):
+        # Deleting model 'Carousel'
+        db.delete_table(u'bootstrap_theme_carousel')
+
+
+    models = {
+        u'bootstrap_theme.carousel': {
+            'Meta': {'ordering': "['ordering']", 'object_name': 'Carousel'},
+            'button_parameter': ('django.db.models.fields.CharField', [], {'max_length': '40', 'null': 'True', 'blank': 'True'}),
+            'button_text': ('django.db.models.fields.CharField', [], {'default': "'Learn more'", 'max_length': '30'}),
+            'button_url': ('django.db.models.fields.CharField', [], {'default': "'list-machines'", 'max_length': '20'}),
+            'caption': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
+            'carousel_group': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
+            'lead': ('django.db.models.fields.TextField', [], {}),
+            'ordering': ('django.db.models.fields.PositiveSmallIntegerField', [], {})
+        }
+    }
+
+    complete_apps = ['bootstrap_theme']
Add a comment to this file

bootstrap_theme/migrations/__init__.py

Empty file added.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.