mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
refactor: sql-tools (#19717)
This commit is contained in:
parent
484529e61e
commit
6044663e26
160 changed files with 1120 additions and 1186 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Check, Column, DatabaseConstraintType, DatabaseSchema, Table } from 'src/sql-tools';
|
||||
import { Check, Column, ConstraintType, DatabaseSchema, Table } from 'src/sql-tools';
|
||||
|
||||
@Table()
|
||||
@Check({ expression: '1=1' })
|
||||
|
|
@ -9,7 +9,7 @@ export class Table1 {
|
|||
|
||||
export const description = 'should create a check constraint with a default name';
|
||||
export const schema: DatabaseSchema = {
|
||||
name: 'postgres',
|
||||
databaseName: 'postgres',
|
||||
schemaName: 'public',
|
||||
functions: [],
|
||||
enums: [],
|
||||
|
|
@ -33,7 +33,7 @@ export const schema: DatabaseSchema = {
|
|||
triggers: [],
|
||||
constraints: [
|
||||
{
|
||||
type: DatabaseConstraintType.CHECK,
|
||||
type: ConstraintType.CHECK,
|
||||
name: 'CHK_8d2ecfd49b984941f6b2589799',
|
||||
tableName: 'table1',
|
||||
expression: '1=1',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue