feat(integration): add search engine creation (#1816)
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
1
packages/db/migrations/mysql/0018_mighty_shaman.sql
Normal file
1
packages/db/migrations/mysql/0018_mighty_shaman.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `search_engine` ADD CONSTRAINT `search_engine_short_unique` UNIQUE(`short`);
|
||||
1668
packages/db/migrations/mysql/meta/0018_snapshot.json
Normal file
1668
packages/db/migrations/mysql/meta/0018_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -127,6 +127,13 @@
|
||||
"when": 1733777544067,
|
||||
"tag": "0017_tired_penance",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 18,
|
||||
"version": "5",
|
||||
"when": 1735593853768,
|
||||
"tag": "0018_mighty_shaman",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
1
packages/db/migrations/sqlite/0018_cheerful_tattoo.sql
Normal file
1
packages/db/migrations/sqlite/0018_cheerful_tattoo.sql
Normal file
@@ -0,0 +1 @@
|
||||
CREATE UNIQUE INDEX `search_engine_short_unique` ON `search_engine` (`short`);
|
||||
1593
packages/db/migrations/sqlite/meta/0018_snapshot.json
Normal file
1593
packages/db/migrations/sqlite/meta/0018_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -127,6 +127,13 @@
|
||||
"when": 1733777395703,
|
||||
"tag": "0017_small_rumiko_fujikawa",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 18,
|
||||
"version": "6",
|
||||
"when": 1735593831501,
|
||||
"tag": "0018_cheerful_tattoo",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -389,7 +389,7 @@ export const searchEngines = mysqlTable("search_engine", {
|
||||
id: varchar({ length: 64 }).notNull().primaryKey(),
|
||||
iconUrl: text().notNull(),
|
||||
name: varchar({ length: 64 }).notNull(),
|
||||
short: varchar({ length: 8 }).notNull(),
|
||||
short: varchar({ length: 8 }).unique().notNull(),
|
||||
description: text(),
|
||||
urlTemplate: text(),
|
||||
type: varchar({ length: 64 }).$type<SearchEngineType>().notNull().default("generic"),
|
||||
|
||||
@@ -375,7 +375,7 @@ export const searchEngines = sqliteTable("search_engine", {
|
||||
id: text().notNull().primaryKey(),
|
||||
iconUrl: text().notNull(),
|
||||
name: text().notNull(),
|
||||
short: text().notNull(),
|
||||
short: text().unique().notNull(),
|
||||
description: text(),
|
||||
urlTemplate: text(),
|
||||
type: text().$type<SearchEngineType>().notNull().default("generic"),
|
||||
|
||||
Reference in New Issue
Block a user