Source Code added
This commit is contained in:
parent
800376eafd
commit
9efa9bc6dd
3912 changed files with 754770 additions and 2 deletions
43
server/test/sql-tools/trigger-name-override.stub.ts
Normal file
43
server/test/sql-tools/trigger-name-override.stub.ts
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import { DatabaseSchema, Table, Trigger } from 'src/sql-tools';
|
||||
|
||||
@Table()
|
||||
@Trigger({
|
||||
name: 'trigger1',
|
||||
timing: 'before',
|
||||
actions: ['insert'],
|
||||
scope: 'row',
|
||||
functionName: 'function1',
|
||||
})
|
||||
export class Table1 {}
|
||||
|
||||
export const description = 'should a trigger with a specific name';
|
||||
export const schema: DatabaseSchema = {
|
||||
databaseName: 'postgres',
|
||||
schemaName: 'public',
|
||||
functions: [],
|
||||
enums: [],
|
||||
extensions: [],
|
||||
parameters: [],
|
||||
overrides: [],
|
||||
tables: [
|
||||
{
|
||||
name: 'table1',
|
||||
columns: [],
|
||||
indexes: [],
|
||||
triggers: [
|
||||
{
|
||||
name: 'trigger1',
|
||||
tableName: 'table1',
|
||||
functionName: 'function1',
|
||||
actions: ['insert'],
|
||||
scope: 'row',
|
||||
timing: 'before',
|
||||
synchronize: true,
|
||||
},
|
||||
],
|
||||
constraints: [],
|
||||
synchronize: true,
|
||||
},
|
||||
],
|
||||
warnings: [],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue