SQLite format 3 @ ! -�) � �����
� �f �u�ItabletranstransCREATE TABLE trans (
id INTEGER PRIMARY KEY AUTOINCREMENT,
dt_begin INTEGER NOT NULL, /* (unix timestamp) date and time of transaction begin */
dt_end INTEGER, /* (unix timestamp) date and time of transaction end */
rpmdb_version_begin TEXT,
rpmdb_version_end TEXT,
releasever TEXT NOT NULL, /* var: $releasever */
user_id INTEGER NOT NULL, /* user ID (UID) */
cmdline TEXT, /* recorded command line (program, options, arguments) */
state INTEGER NOT NULL /* (enum) */
)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)��tablereporepoCREATE TABLE repo (
id INTEGER PRIMARY KEY,
repoid TEXT NOT NULL /* repository ID aka 'repoid' */
)
p pu �))�?tableconsole_outputconsole_outputCREATE TABLE console_output (
id INTEGER PRIMARY KEY,
trans_id INTEGER REFERENCES trans(id),
file_descriptor INTEGER NOT NULL, /* stdout: 1, stderr : 2 */
line TEXT NOT NULL
)�'�1tableitemitemCREATE TABLE item (
id INTEGER PRIMARY KEY,
item_type INTEGER NOT NULL /* (enum) 1: rpm, 2: group, 3: env ...*/
)�^!!�tabletrans_itemtrans_item CREATE TABLE trans_item (
id INTEGER PRIMARY KEY AUTOINCREMENT,
trans_id INTEGER REFERENCES trans(id),
item_id INTEGER REFERENCES item(id),
repo_id INTEGER REFERENCES repo(id),
action INTEGER NOT NULL, /* (enum) */
reason INTEGER NOT NULL, /* (enum) */
state INTEGER NOT NULL /* (enum) */
)
4 4r�� �;--�)tableitem_replaced_byitem_replaced_by
CREATE TABLE item_replaced_by ( /* M:N relationship between transaction items */
trans_item_id INTEGER REFERENCES trans_item(id),
by_trans_item_id INTEGER REFERENCES trans_item(id),
PRIMARY KEY (trans_item_id, by_trans_item_id)
)?S- indexsqlite_autoindex_item_replaced_by_1item_replaced_by� !!�utabletrans_withtrans_with
CREATE TABLE trans_with (
id INTEGER PRIMARY KEY AUTOINCREMENT,
trans_id INTEGER REFERENCES trans(id),
item_id INTEGER REFERENCES item(id),
CONSTRAINT trans_with_unique_trans_item UNIQUE (trans_id, item_id)
)3
G! indexsqlite_autoindex_trans_with_1trans_with
� �U|�� ��#tablerpmrpmCREATE TABLE rpm (
item_id INTEGER UNIQUE NOT NULL,
name TEXT NOT NULL,
epoch INTEGER NOT NULL, /* empty epoch is stored as 0 */
version TEXT NOT NULL,
release TEXT NOT NULL,
arch TEXT NOT NULL,
FOREIGN KEY(item_id) REFERENCES item(id),
CONSTRAINT rpm_unique_nevra UNIQUE (name, epoch, version, release, arch)
)%9 indexsqlite_autoindex_rpm_1rpm%
9 indexsqlite_autoindex_rpm_2rpm�###�
tablecomps_groupcomps_groupCREATE TABLE comps_group (
item_id INTEGER UNIQUE NOT NULL,
groupid TEXT NOT NULL,
name TEXT NOT NULL,
translated_name TEXT NOT NULL,
pkg_types INTEGER NOT NULL,
FOREIGN KEY(item_id) REFERENCES item(id)
)5I# indexsqlite_autoindex_comps_group_1comps_group
� �8� �33�Ytablecomps_group_packagecomps_group_packageCREATE TABLE comps_group_package (
id INTEGER PRIMARY KEY AUTOINCREMENT,
group_id INTEGER NOT NULL,
name TEXT NOT NULL,
installed INTEGER NOT NULL,
pkg_type INTEGER NOT NULL,
FOREIGN KEY(group_id) REFERENCES comps_group(item_id),
CONSTRAINT comps_group_package_unique_name UNIQUE (group_id, name)
)EY3 indexsqlite_autoindex_comps_group_package_1comps_group_package�;//�%tablecomps_environmentcomps_environmentCREATE TABLE comps_environment (
item_id INTEGER UNIQUE NOT NULL,
environmentid TEXT NOT NULL,
name TEXT NOT NULL,
translated_name TEXT NOT NULL,
pkg_types INTEGER NOT NULL,
FOREIGN KEY(item_id) REFERENCES item(id)
)AU/ indexsqlite_autoindex_comps_environment_1comps_environment
G Ge�c� �L;;�/tablecomps_environment_groupcomps_environment_groupCREATE TABLE comps_environment_group (
id INTEGER PRIMARY KEY AUTOINCREMENT,
environment_id INTEGER NOT NULL,
groupid TEXT NOT NULL,
installed INTEGER NOT NULL,
group_type INTEGER NOT NULL,
FOREIGN KEY(environment_id) REFERENCES comps_environment(item_id),
CONSTRAINT comps_environment_group_unique_groupid UNIQUE (environment_id, groupid)
)Ma; indexsqlite_autoindex_comps_environment_group_1comps_environment_group9Qindexrpm_namerpmCREATE INDEX rpm_name ON rpm(name)a3!}indextrans_item_trans_idtrans_itemCREATE INDEX trans_item_trans_id ON trans_item(trans_id)^1!yindextrans_item_item_idtrans_itemCREATE INDEX trans_item_item_id ON trans_item(item_id)n�7tableconfigconfig CREATE TABLE config (
key TEXT PRIMARY KEY,
value TEXT NOT NULL
)+? indexsqlite_autoindex_config_1config!
� �
version1.1
� �
version