Browse Source

split sql

devel
Dmitry Novikov 8 years ago
parent
commit
9633c6e908
  1. 18
      statistics/migrations/0003_auto_20180814_1921.py

18
statistics/migrations/0003_auto_20180814_1921.py

@ -14,13 +14,15 @@ class Migration(migrations.Migration):
operations = [
migrations.RunSQL(
"DROP TABLE `flowcache`; "
"CREATE TABLE `flowcache` ( "
" `last_time` INT(10) UNSIGNED NOT NULL, "
" `abon_id` INT(11) DEFAULT NULL UNIQUE, "
" `octets` INT(10) UNSIGNED NOT NULL, "
" `packets` INT(10) UNSIGNED NOT NULL, "
" KEY `flowcache_abon_id_91e1085d` (`abon_id`) "
") ENGINE = MEMORY DEFAULT CHARSET = utf8;"
(
"DROP TABLE `flowcache`;",
"CREATE TABLE `flowcache` ( "
" `last_time` INT(10) UNSIGNED NOT NULL, "
" `abon_id` INT(11) DEFAULT NULL UNIQUE, "
" `octets` INT(10) UNSIGNED NOT NULL, "
" `packets` INT(10) UNSIGNED NOT NULL, "
" KEY `flowcache_abon_id_91e1085d` (`abon_id`) "
") ENGINE = MEMORY DEFAULT CHARSET = utf8;"
)
)
]
Loading…
Cancel
Save