Commit bb163f315e588f151cd9f9fe0b873a9806b168e2
1 parent
a8c49bea
Exists in
master
and in
5 other branches
adding migrations [Issue #126]
Showing
2 changed files
with
29 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,29 @@ | @@ -0,0 +1,29 @@ | ||
1 | +# -*- coding: utf-8 -*- | ||
2 | +# Generated by Django 1.10 on 2016-10-06 17:57 | ||
3 | +from __future__ import unicode_literals | ||
4 | + | ||
5 | +from django.db import migrations, models | ||
6 | + | ||
7 | + | ||
8 | +class Migration(migrations.Migration): | ||
9 | + | ||
10 | + initial = True | ||
11 | + | ||
12 | + dependencies = [ | ||
13 | + ] | ||
14 | + | ||
15 | + operations = [ | ||
16 | + migrations.CreateModel( | ||
17 | + name='Link', | ||
18 | + fields=[ | ||
19 | + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
20 | + ('name', models.CharField(max_length=100)), | ||
21 | + ('link', models.URLField()), | ||
22 | + ('description', models.CharField(max_length=200)), | ||
23 | + ], | ||
24 | + options={ | ||
25 | + 'verbose_name_plural': 'Links', | ||
26 | + 'verbose_name': 'Link', | ||
27 | + }, | ||
28 | + ), | ||
29 | + ] |