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

« back to all changes in this revision

Viewing changes to nova/db/sqlalchemy/migrate_repo/versions/060_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
 
    CREATE TEMPORARY TABLE virtual_interfaces_backup (
3
 
        created_at DATETIME,
4
 
        updated_at DATETIME,
5
 
        deleted_at DATETIME,
6
 
        deleted BOOLEAN,
7
 
        id INTEGER NOT NULL,
8
 
        address VARCHAR(255),
9
 
        network_id INTEGER,
10
 
        instance_id INTEGER NOT NULL,
11
 
        uuid VARCHAR(36),
12
 
        PRIMARY KEY (id)
13
 
    );
14
 
 
15
 
    INSERT INTO virtual_interfaces_backup
16
 
        SELECT created_at, updated_at, deleted_at, deleted, id, address,
17
 
                network_id, instance_id, uuid
18
 
        FROM virtual_interfaces;
19
 
 
20
 
    DROP TABLE virtual_interfaces;
21
 
 
22
 
    CREATE TABLE virtual_interfaces (
23
 
        created_at DATETIME,
24
 
        updated_at DATETIME,
25
 
        deleted_at DATETIME,
26
 
        deleted BOOLEAN,
27
 
        id INTEGER NOT NULL,
28
 
        address VARCHAR(255),
29
 
        network_id INTEGER,
30
 
        instance_id INTEGER NOT NULL,
31
 
        uuid VARCHAR(36),
32
 
        PRIMARY KEY (id),
33
 
        FOREIGN KEY(network_id) REFERENCES networks (id),
34
 
        UNIQUE (address),
35
 
        CHECK (deleted IN (0, 1))
36
 
    );
37
 
 
38
 
    INSERT INTO virtual_interfaces
39
 
        SELECT created_at, updated_at, deleted_at, deleted, id, address,
40
 
                network_id, instance_id, uuid
41
 
        FROM virtual_interfaces_backup;
42
 
 
43
 
    DROP TABLE virtual_interfaces_backup;
44
 
 
45
 
COMMIT;