2014-06-16 22:18:42 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2014-12-13 06:19:58 +08:00
|
|
|
import django.contrib.sessions.models
|
2015-01-28 20:35:27 +08:00
|
|
|
from django.db import migrations, models
|
2014-06-16 22:18:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Session',
|
|
|
|
fields=[
|
2015-09-12 07:33:12 +08:00
|
|
|
('session_key', models.CharField(
|
|
|
|
max_length=40, serialize=False, verbose_name='session key', primary_key=True
|
|
|
|
)),
|
2014-06-16 22:18:42 +08:00
|
|
|
('session_data', models.TextField(verbose_name='session data')),
|
|
|
|
('expire_date', models.DateTimeField(verbose_name='expire date', db_index=True)),
|
|
|
|
],
|
|
|
|
options={
|
2014-05-17 00:18:34 +08:00
|
|
|
'abstract': False,
|
2014-06-16 22:18:42 +08:00
|
|
|
'db_table': 'django_session',
|
|
|
|
'verbose_name': 'session',
|
|
|
|
'verbose_name_plural': 'sessions',
|
|
|
|
},
|
2014-12-13 06:19:58 +08:00
|
|
|
managers=[
|
|
|
|
('objects', django.contrib.sessions.models.SessionManager()),
|
|
|
|
],
|
2014-06-16 22:18:42 +08:00
|
|
|
),
|
|
|
|
]
|