Skip to content

Commit

Permalink
reorganize domains
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 8, 2024
1 parent 2b6868b commit 36ae17b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/operations/domains/alterDomain.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { DomainOptions } from '.';
import type { MigrationOptions } from '../../types';
import { escapeValue } from '../../utils';
import type { Name } from '../generalTypes';
import type { DomainOptions } from './shared';

export interface DomainOptionsAlter extends DomainOptions {
allowNull?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/operations/domains/createDomain.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { DomainOptions } from '.';
import { dropDomain } from '.';
import type { MigrationOptions } from '../../types';
import { applyType, escapeValue } from '../../utils';
import type { DropOptions, Name, Type } from './../generalTypes';
import { dropDomain } from './dropDomain';
import type { DomainOptions } from './shared';

export interface DomainOptionsCreate extends DomainOptions {
collation?: string;
Expand Down
13 changes: 1 addition & 12 deletions src/operations/domains/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
import type { Value } from './../generalTypes';

export interface DomainOptions {
default?: Value;

notNull?: boolean;

check?: string;

constraintName?: string;
}

export * from './alterDomain';
export * from './createDomain';
export * from './dropDomain';
export * from './renameDomain';
export * from './shared';
11 changes: 11 additions & 0 deletions src/operations/domains/shared.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { Value } from '../generalTypes';

export interface DomainOptions {
default?: Value;

notNull?: boolean;

check?: string;

constraintName?: string;
}

0 comments on commit 36ae17b

Please sign in to comment.