Commit 4416cba7 authored by Daniele Cocca's avatar Daniele Cocca
Browse files

Replaced the ticks with backticks in the database schema.

parent 3c27f198
CREATE TABLE IF NOT EXISTS packages (
'id' INTEGER PRIMARY KEY ASC ,
'name' TEXT NOT NULL ,
'version' TEXT NOT NULL ,
'filename' TEXT NOT NULL ,
'description' TEXT NOT NULL ,
'size' INTEGER NOT NULL ,
'installedsize' INTEGER NULL DEFAULT NULL ,
'md5sum' VARCHAR(32) NOT NULL ,
'url' TEXT NULL DEFAULT NULL ,
'builddate' INTEGER NULL DEFAULT NULL ,
'arch' TEXT NOT NULL ,
'packager' TEXT NOT NULL ,
'backup' TEXT NULL DEFAULT NULL ,
'license' TEXT NULL DEFAULT NULL ,
'providesmimetype' TEXT NULL DEFAULT NULL ,
'flags' TEXT NULL DEFAULT NULL ,
'screenshoturl' TEXT NULL DEFAULT NULL ,
'installreason' INTEGER NULL DEFAULT 0,
'installdate' INTEGER NULL DEFAULT NULL );
`id` INTEGER PRIMARY KEY ASC ,
`name` TEXT NOT NULL ,
`version` TEXT NOT NULL ,
`filename` TEXT NOT NULL ,
`description` TEXT NOT NULL ,
`size` INTEGER NOT NULL ,
`installedsize` INTEGER NULL DEFAULT NULL ,
`md5sum` VARCHAR(32) NOT NULL ,
`url` TEXT NULL DEFAULT NULL ,
`builddate` INTEGER NULL DEFAULT NULL ,
`arch` TEXT NOT NULL ,
`packager` TEXT NOT NULL ,
`backup` TEXT NULL DEFAULT NULL ,
`license` TEXT NULL DEFAULT NULL ,
`providesmimetype` TEXT NULL DEFAULT NULL ,
`flags` TEXT NULL DEFAULT NULL ,
`screenshoturl` TEXT NULL DEFAULT NULL ,
`installreason` INTEGER NULL DEFAULT 0,
`installdate` INTEGER NULL DEFAULT NULL );
CREATE INDEX `packages_name` ON `packages` (`name` ASC) ;
......@@ -118,4 +118,4 @@ CREATE TABLE IF NOT EXISTS `belongs` (
FOREIGN KEY (`package` )
REFERENCES `packages` (`id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION);
\ No newline at end of file
ON UPDATE NO ACTION);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment