Remove unnecessary migration V02.17.04
authorymh <ymh.work@gmail.com>
Wed, 16 Sep 2015 22:36:47 +0200
changeset 280 b61b766a5830
parent 279 813d8955b6a3
child 281 3db760635197
Remove unnecessary migration
src/ldtplatform/__init__.py
src/ldtplatform/migrations/0002_correct_oauth_provider_migration.py
--- a/src/ldtplatform/__init__.py	Wed Sep 16 22:17:03 2015 +0200
+++ b/src/ldtplatform/__init__.py	Wed Sep 16 22:36:47 2015 +0200
@@ -1,4 +1,4 @@
-VERSION = (2, 17, 3, "final", 0)
+VERSION = (2, 17, 4, "final", 0)
 
 VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
 
--- a/src/ldtplatform/migrations/0002_correct_oauth_provider_migration.py	Wed Sep 16 22:17:03 2015 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
-    dependencies = [
-        ('ldtplatform', '0001_correct_oauth_provider_secret_size')
-    ]
-
-    database_operations = [
-        migrations.RunSQL("ALTER TABLE oauth_provider_nonce ADD COLUMN \"timestamp\" integer DEFAULT 1375699511;", migrations.RunSQL.noop),
-        migrations.RunSQL("ALTER TABLE oauth_provider_nonce ADD CONSTRAINT oauth_provider_nonce_timestamp_check CHECK (\"timestamp\" >= 0);", migrations.RunSQL.noop),
-        migrations.RunSQL("ALTER TABLE oauth_provider_nonce ALTER COLUMN \"timestamp\" SET NOT NULL;", migrations.RunSQL.noop),
-        migrations.RunSQL("CREATE INDEX oauth_provider_nonce_d7e6d55b ON oauth_provider_nonce USING btree (\"timestamp\")", migrations.RunSQL.noop),
-        migrations.RunSQL("ALTER TABLE oauth_provider_resource RENAME TO oauth_provider_scope;", migrations.RunSQL.noop),
-        migrations.RunSQL("ALTER TABLE oauth_provider_token RENAME resource_id  TO scope_id;", migrations.RunSQL.noop),
-        migrations.RunSQL("ALTER TABLE oauth_provider_token ALTER COLUMN scope_id DROP NOT NULL;", migrations.RunSQL.noop),
-    ]
-
-    state_operations = [
-    ]
-
-    operations = [
-        migrations.SeparateDatabaseAndState(
-            database_operations=database_operations,
-            state_operations=state_operations)
-    ]
-    
-    
\ No newline at end of file