core/set/install/a_bib_sqlite3.php

33 lines
615 B
PHP

<?php
\DB::set("CREATE TABLE IF NOT EXISTS `bib_category` (
`id` INTEGER PRIMARY KEY NOT NULL,
`txt` TEXT,
`parent` INTEGER,
`status` INTEGER,
`img` TEXT)"
);
\DB::set("CREATE TABLE IF NOT EXISTS `bib` (
`id` INTEGER PRIMARY KEY NOT NULL,
`txt` TEXT,
`category` INTEGER,
`opis` TEXT,
`god` TEXT,
`avtor` TEXT,
`obem` INTEGER,
`ves` INTEGER,
`format` TEXT,
`img` TEXT,
`filename` TEXT,
`link` TEXT,
`md5` TEXT,
`status` INTEGER,
`kupload` INTEGER,
`ksee` INTEGER,
`klike` INTEGER,
FOREIGN KEY (`category`) REFERENCES `bib_category` (`id`))");
?>