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

« back to all changes in this revision

Viewing changes to nova/db/sqlalchemy/migrate_repo/versions/076_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
 
 
2
 
BEGIN TRANSACTION;
3
 
    CREATE TABLE instance_types_temp (
4
 
        created_at DATETIME,
5
 
        updated_at DATETIME,
6
 
        deleted_at DATETIME,
7
 
        deleted BOOLEAN,
8
 
        name VARCHAR(255),
9
 
        id INTEGER NOT NULL,
10
 
        memory_mb INTEGER NOT NULL,
11
 
        vcpus INTEGER NOT NULL,
12
 
        root_gb INTEGER NOT NULL,
13
 
        ephemeral_gb INTEGER NOT NULL,
14
 
        swap INTEGER NOT NULL,
15
 
        rxtx_factor FLOAT,
16
 
        vcpu_weight INTEGER,
17
 
        flavorid VARCHAR(255),
18
 
        PRIMARY KEY (id),
19
 
        CHECK (deleted IN (0, 1))
20
 
    );
21
 
    INSERT INTO instance_types_temp SELECT
22
 
        created_at,
23
 
        updated_at,
24
 
        deleted_at,
25
 
        deleted,
26
 
        name,
27
 
        id,
28
 
        memory_mb,
29
 
        vcpus,
30
 
        root_gb,
31
 
        ephemeral_gb,
32
 
        swap,
33
 
        rxtx_factor,
34
 
        vcpu_weight,
35
 
        flavorid
36
 
    FROM instance_types;
37
 
    DROP TABLE instance_types;
38
 
    ALTER TABLE instance_types_temp RENAME TO instance_types;
39
 
    CREATE TABLE volume_types_temp (
40
 
        created_at DATETIME,
41
 
        updated_at DATETIME,
42
 
        deleted_at DATETIME,
43
 
        deleted BOOLEAN,
44
 
        name VARCHAR(255),
45
 
        id INTEGER NOT NULL,
46
 
        PRIMARY KEY (id),
47
 
        CHECK (deleted IN (0, 1))
48
 
    );
49
 
    INSERT INTO volume_types_temp SELECT
50
 
        created_at,
51
 
        updated_at,
52
 
        deleted_at,
53
 
        deleted,
54
 
        name,
55
 
        id
56
 
    FROM volume_types;
57
 
    DROP TABLE volume_types;
58
 
    ALTER TABLE volume_types_temp RENAME TO volume_types;
59
 
COMMIT;