~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/db/sqlalchemy/migrate_repo/versions/013_sqlite_downgrade.sql

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-24 13:12:53 UTC
  • mfrom: (1.1.55)
  • Revision ID: package-import@ubuntu.com-20120524131253-ommql08fg1en06ut
Tags: 2012.2~f1-0ubuntu1
* New upstream release.
* Prepare for quantal:
  - Dropped debian/patches/upstream/0006-Use-project_id-in-ec2.cloud._format_image.patch
  - Dropped debian/patches/upstream/0005-Populate-image-properties-with-project_id-again.patch
  - Dropped debian/patches/upstream/0004-Fixed-bug-962840-added-a-test-case.patch
  - Dropped debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch
  - Dropped debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch
  - Dropped debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch 
  - Dropped debian/patches/0001-fix-useexisting-deprecation-warnings.patch
* debian/control: Add python-keystone as a dependency. (LP: #907197)
* debian/patches/kombu_tests_timeout.patch: Refreshed.
* debian/nova.conf, debian/nova-common.postinst: Convert to new ini
  file configuration
* debian/patches/nova-manage_flagfile_location.patch: Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
BEGIN TRANSACTION;
2
 
 
3
 
    CREATE TEMPORARY TABLE migrations_backup (
4
 
        created_at DATETIME,
5
 
        updated_at DATETIME,
6
 
        deleted_at DATETIME,
7
 
        deleted BOOLEAN,
8
 
        id INTEGER NOT NULL,
9
 
        source_compute VARCHAR(255),
10
 
        dest_compute VARCHAR(255),
11
 
        dest_host VARCHAR(255),
12
 
        instance_id INTEGER,
13
 
        status VARCHAR(255),
14
 
        old_flavor_id INTEGER,
15
 
        new_flavor_id INTEGER,
16
 
        PRIMARY KEY (id),
17
 
        CHECK (deleted IN (0, 1)),
18
 
        FOREIGN KEY(instance_id) REFERENCES instances (id)
19
 
    );
20
 
 
21
 
    INSERT INTO migrations_backup
22
 
        SELECT created_at,
23
 
               updated_at,
24
 
               deleted_at,
25
 
               deleted,
26
 
               id,
27
 
               source_compute,
28
 
               dest_compute,
29
 
               dest_host,
30
 
               instance_id,
31
 
               status,
32
 
               old_flavor_id,
33
 
               new_flavor_id
34
 
        FROM migrations;
35
 
 
36
 
    DROP TABLE migrations;
37
 
 
38
 
    CREATE TABLE migrations (
39
 
        created_at DATETIME,
40
 
        updated_at DATETIME,
41
 
        deleted_at DATETIME,
42
 
        deleted BOOLEAN,
43
 
        id INTEGER NOT NULL,
44
 
        source_compute VARCHAR(255),
45
 
        dest_compute VARCHAR(255),
46
 
        dest_host VARCHAR(255),
47
 
        instance_id INTEGER,
48
 
        status VARCHAR(255),
49
 
        PRIMARY KEY (id),
50
 
        CHECK (deleted IN (0, 1)),
51
 
        FOREIGN KEY(instance_id) REFERENCES instances (id)
52
 
    );
53
 
 
54
 
    INSERT INTO migrations
55
 
        SELECT created_at,
56
 
               updated_at,
57
 
               deleted_at,
58
 
               deleted,
59
 
               id,
60
 
               source_compute,
61
 
               dest_compute,
62
 
               dest_host,
63
 
               instance_id,
64
 
               status
65
 
        FROM migrations_backup;
66
 
 
67
 
    DROP TABLE migrations_backup;
68
 
 
69
 
COMMIT;