mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
define foreign keys
This commit is contained in:
parent
fdc6e739b4
commit
7370815f9d
16 changed files with 59 additions and 26 deletions
|
|
@ -10,7 +10,9 @@ pub fn init(tx: &Transaction) -> Result<usize, Error> {
|
|||
"CREATE TABLE IF NOT EXISTS `app_browser`
|
||||
(
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`app_id` INTEGER NOT NULL
|
||||
`app_id` INTEGER NOT NULL,
|
||||
|
||||
FOREIGN KEY (`app_id`) REFERENCES `app`(`id`)
|
||||
)",
|
||||
[],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue