Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Database_Finance
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OA_Finance
Database_Finance
Commits
c6e54694
Commit
c6e54694
authored
1 year ago
by
wohlgemu
Browse files
Options
Downloads
Patches
Plain Diff
add column date_invoice, change column name biller
parent
ecea3e58
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script/Create_Table.sql
+3
-2
3 additions, 2 deletions
script/Create_Table.sql
with
3 additions
and
2 deletions
script/Create_Table.sql
+
3
−
2
View file @
c6e54694
...
@@ -149,7 +149,8 @@ CREATE TABLE IF NOT EXISTS public.finance_invoice
...
@@ -149,7 +149,8 @@ CREATE TABLE IF NOT EXISTS public.finance_invoice
ts_form
timestamp
without
time
zone
NOT
NULL
DEFAULT
now
(),
ts_form
timestamp
without
time
zone
NOT
NULL
DEFAULT
now
(),
invoice_number
character
varying
(
100
)
COLLATE
pg_catalog
.
"default"
NOT
NULL
,
invoice_number
character
varying
(
100
)
COLLATE
pg_catalog
.
"default"
NOT
NULL
,
ticket_number
character
varying
(
17
)
COLLATE
pg_catalog
.
"default"
,
ticket_number
character
varying
(
17
)
COLLATE
pg_catalog
.
"default"
,
publisher
character
varying
(
150
)
COLLATE
pg_catalog
.
"default"
NOT
NULL
,
biller
character
varying
(
150
)
COLLATE
pg_catalog
.
"default"
NOT
NULL
,
date_invoice
date
,
date_invoice_due
date
,
date_invoice_due
date
,
date_invoice_receipt
date
,
date_invoice_receipt
date
,
date_factually_accurate
date
,
date_factually_accurate
date
,
...
@@ -159,7 +160,7 @@ CREATE TABLE IF NOT EXISTS public.finance_invoice
...
@@ -159,7 +160,7 @@ CREATE TABLE IF NOT EXISTS public.finance_invoice
issuer_update
character
varying
(
30
)
COLLATE
pg_catalog
.
"default"
DEFAULT
SESSION_USER
,
issuer_update
character
varying
(
30
)
COLLATE
pg_catalog
.
"default"
DEFAULT
SESSION_USER
,
CONSTRAINT
finance_invoice_pkey
PRIMARY
KEY
(
invoice_number
),
CONSTRAINT
finance_invoice_pkey
PRIMARY
KEY
(
invoice_number
),
CONSTRAINT
blank_check_invoice_number
CHECK
(
ltrim
(
invoice_number
::
text
)
=
invoice_number
::
text
AND
rtrim
(
invoice_number
::
text
)
=
invoice_number
::
text
),
CONSTRAINT
blank_check_invoice_number
CHECK
(
ltrim
(
invoice_number
::
text
)
=
invoice_number
::
text
AND
rtrim
(
invoice_number
::
text
)
=
invoice_number
::
text
),
CONSTRAINT
blank_check_
publish
er
CHECK
(
ltrim
(
publish
er
::
text
)
=
publish
er
::
text
AND
rtrim
(
publish
er
::
text
)
=
publish
er
::
text
),
CONSTRAINT
blank_check_
bill
er
CHECK
(
ltrim
(
bill
er
::
text
)
=
bill
er
::
text
AND
rtrim
(
bill
er
::
text
)
=
bill
er
::
text
),
CONSTRAINT
blank_check_ticket_number
CHECK
(
ltrim
(
ticket_number
::
text
)
=
ticket_number
::
text
AND
rtrim
(
ticket_number
::
text
)
=
ticket_number
::
text
)
CONSTRAINT
blank_check_ticket_number
CHECK
(
ltrim
(
ticket_number
::
text
)
=
ticket_number
::
text
AND
rtrim
(
ticket_number
::
text
)
=
ticket_number
::
text
)
)
)
WITH
(
WITH
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment