core/api/modules/admin/install_sqlite3.php

26 lines
688 B
PHP
Raw Normal View History

2022-12-17 18:15:09 +05:00
<?php
/* ----------------------------------------------------------------------
12.12.2022
Добавляем нужные поля
---------------------------------------------------------------------- */
\DB::set("CREATE TABLE IF NOT EXISTS `tasks` (
`id` INTEGER PRIMARY KEY NOT NULL,
`isp_id` TEXT,
`user_id` TEXT,
`mod` TEXT,
`task` TEXT,
`t` TEXT,
`srok` TEXT,
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
FOREIGN KEY (`isp_id`) REFERENCES `users` (`id`)
)");
\DB::set("CREATE TABLE IF NOT EXISTS `zametka` (
`user_id` INTEGER NOT NULL,
`txt` TEXT,
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
)");
?>