~yolanda.robla/glance/precise-security

« back to all changes in this revision

Viewing changes to glance/registry/db/migrate_repo/versions/003_sqlite_downgrade.sql

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-03-09 11:33:12 UTC
  • mfrom: (1.1.31)
  • Revision ID: package-import@ubuntu.com-20120309113312-6qkwmtssiyzvat0s
Tags: 2012.1~rc1~20120309.1315-0ubuntu1
* New upstream version.
* debian/control, debian/glance-client.install,
  glance-common.install: Add glance-client package. (LP: #928378) 
* debian/watch: Fix watch file.
* Fix lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
/* Make changes to the base images table */
4
4
CREATE TEMPORARY TABLE images_backup (
5
 
        id INTEGER NOT NULL, 
6
 
        name VARCHAR(255), 
7
 
        size INTEGER, 
8
 
        status VARCHAR(30) NOT NULL, 
9
 
        is_public BOOLEAN NOT NULL, 
10
 
        location TEXT, 
11
 
        created_at DATETIME NOT NULL, 
12
 
        updated_at DATETIME, 
13
 
        deleted_at DATETIME, 
14
 
        deleted BOOLEAN NOT NULL, 
 
5
        id INTEGER NOT NULL,
 
6
        name VARCHAR(255),
 
7
        size INTEGER,
 
8
        status VARCHAR(30) NOT NULL,
 
9
        is_public BOOLEAN NOT NULL,
 
10
        location TEXT,
 
11
        created_at DATETIME NOT NULL,
 
12
        updated_at DATETIME,
 
13
        deleted_at DATETIME,
 
14
        deleted BOOLEAN NOT NULL,
15
15
        PRIMARY KEY (id)
16
16
);
17
17
 
22
22
DROP TABLE images;
23
23
 
24
24
CREATE TABLE images (
25
 
        id INTEGER NOT NULL, 
26
 
        name VARCHAR(255), 
27
 
        size INTEGER, 
 
25
        id INTEGER NOT NULL,
 
26
        name VARCHAR(255),
 
27
        size INTEGER,
28
28
        type VARCHAR(30),
29
 
        status VARCHAR(30) NOT NULL, 
30
 
        is_public BOOLEAN NOT NULL, 
31
 
        location TEXT, 
32
 
        created_at DATETIME NOT NULL, 
33
 
        updated_at DATETIME, 
34
 
        deleted_at DATETIME, 
35
 
        deleted BOOLEAN NOT NULL, 
36
 
        PRIMARY KEY (id), 
37
 
        CHECK (is_public IN (0, 1)), 
 
29
        status VARCHAR(30) NOT NULL,
 
30
        is_public BOOLEAN NOT NULL,
 
31
        location TEXT,
 
32
        created_at DATETIME NOT NULL,
 
33
        updated_at DATETIME,
 
34
        deleted_at DATETIME,
 
35
        deleted BOOLEAN NOT NULL,
 
36
        PRIMARY KEY (id),
 
37
        CHECK (is_public IN (0, 1)),
38
38
        CHECK (deleted IN (0, 1))
39
39
);
40
40
CREATE INDEX ix_images_deleted ON images (deleted);