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

« back to all changes in this revision

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