# HG changeset patch # User ymh # Date 1442435807 -7200 # Node ID b61b766a5830530f6ad028722c03017d6e7d6499 # Parent 813d8955b6a33d2392c505df0da975d268353ef9 Remove unnecessary migration diff -r 813d8955b6a3 -r b61b766a5830 src/ldtplatform/__init__.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]))) diff -r 813d8955b6a3 -r b61b766a5830 src/ldtplatform/migrations/0002_correct_oauth_provider_migration.py --- 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