~gandelman-a/ubuntu/precise/nova/UCA_2012.2.1

« back to all changes in this revision

Viewing changes to nova/db/sqlalchemy/migrate_repo/versions/031_sqlite_upgrade.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 fixed_ips_backup (
4
 
        id INTEGER NOT NULL,
5
 
        address VARCHAR(255),
6
 
        virtual_interface_id INTEGER,
7
 
        network_id INTEGER,
8
 
        instance_id INTEGER,
9
 
        allocated BOOLEAN default FALSE,
10
 
        leased BOOLEAN default FALSE,
11
 
        reserved BOOLEAN default FALSE,
12
 
        created_at DATETIME NOT NULL,
13
 
        updated_at DATETIME,
14
 
        deleted_at DATETIME,
15
 
        deleted BOOLEAN NOT NULL,
16
 
        PRIMARY KEY (id)
17
 
    );
18
 
 
19
 
    INSERT INTO fixed_ips_backup
20
 
    SELECT id, address, virtual_interface_id, network_id, instance_id, allocated, leased, reserved, created_at, updated_at, deleted_at, deleted
21
 
    FROM fixed_ips;
22
 
 
23
 
    DROP TABLE fixed_ips;
24
 
 
25
 
    CREATE TABLE fixed_ips (
26
 
        id INTEGER NOT NULL,
27
 
        address VARCHAR(255),
28
 
        virtual_interface_id INTEGER,
29
 
        network_id INTEGER,
30
 
        instance_id INTEGER,
31
 
        allocated BOOLEAN default FALSE,
32
 
        leased BOOLEAN default FALSE,
33
 
        reserved BOOLEAN default FALSE,
34
 
        created_at DATETIME NOT NULL,
35
 
        updated_at DATETIME,
36
 
        deleted_at DATETIME,
37
 
        deleted BOOLEAN NOT NULL,
38
 
        PRIMARY KEY (id),
39
 
        FOREIGN KEY(virtual_interface_id) REFERENCES virtual_interfaces (id)
40
 
    );
41
 
 
42
 
    INSERT INTO fixed_ips
43
 
    SELECT id, address, virtual_interface_id, network_id, instance_id, allocated, leased, reserved, created_at, updated_at, deleted_at, deleted
44
 
    FROM fixed_ips;
45
 
 
46
 
    DROP TABLE fixed_ips_backup;
47
 
 
48
 
COMMIT;