Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
civicrm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plugins
civicrm
Commits
c400837c
Verified
Commit
c400837c
authored
3 years ago
by
Kevin Cristiano
Browse files
Options
Downloads
Patches
Plain Diff
update civigrant sql files
parent
6d970d9d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
civicrm/ext/civigrant/sql/auto_install.sql
+58
-0
58 additions, 0 deletions
civicrm/ext/civigrant/sql/auto_install.sql
civicrm/ext/civigrant/sql/auto_uninstall.sql
+20
-0
20 additions, 0 deletions
civicrm/ext/civigrant/sql/auto_uninstall.sql
with
78 additions
and
0 deletions
civicrm/ext/civigrant/sql/auto_install.sql
0 → 100644
+
58
−
0
View file @
c400837c
-- +--------------------------------------------------------------------+
-- | Copyright CiviCRM LLC. All rights reserved. |
-- | |
-- | This work is published under the GNU AGPLv3 license with some |
-- | permitted exceptions and without any warranty. For full license |
-- | and copyright information, see https://civicrm.org/licensing |
-- +--------------------------------------------------------------------+
--
-- Generated from schema.tpl
-- DO NOT EDIT. Generated by CRM_Core_CodeGen
--
-- /*******************************************************
-- *
-- * Clean up the existing tables - this section generated from drop.tpl
-- *
-- *******************************************************/
SET
FOREIGN_KEY_CHECKS
=
0
;
DROP
TABLE
IF
EXISTS
`civicrm_grant`
;
SET
FOREIGN_KEY_CHECKS
=
1
;
-- /*******************************************************
-- *
-- * Create new tables
-- *
-- *******************************************************/
-- /*******************************************************
-- *
-- * civicrm_grant
-- *
-- * This table stores information about grants given to a contact.
-- *
-- *******************************************************/
CREATE
TABLE
`civicrm_grant`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'Unique Grant id'
,
`contact_id`
int
unsigned
NOT
NULL
COMMENT
'Contact ID of contact record given grant belongs to.'
,
`application_received_date`
date
COMMENT
'Date on which grant application was received by donor.'
,
`decision_date`
date
COMMENT
'Date on which grant decision was made.'
,
`money_transfer_date`
date
COMMENT
'Date on which grant money transfer was made.'
,
`grant_due_date`
date
COMMENT
'Date on which grant report is due.'
,
`grant_report_received`
tinyint
COMMENT
'Yes/No field stating whether grant report was received by donor.'
,
`grant_type_id`
int
unsigned
NOT
NULL
COMMENT
'Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.'
,
`amount_total`
decimal
(
20
,
2
)
NOT
NULL
COMMENT
'Requested grant amount, in default currency.'
,
`amount_requested`
decimal
(
20
,
2
)
COMMENT
'Requested grant amount, in original currency (optional).'
,
`amount_granted`
decimal
(
20
,
2
)
COMMENT
'Granted amount, in default currency.'
,
`currency`
varchar
(
3
)
NOT
NULL
COMMENT
'3 character string, value from config setting or input via user.'
,
`rationale`
text
COMMENT
'Grant rationale.'
,
`status_id`
int
unsigned
NOT
NULL
COMMENT
'ID of Grant status.'
,
`financial_type_id`
int
unsigned
DEFAULT
NULL
COMMENT
'FK to Financial Type.'
,
PRIMARY
KEY
(
`id`
),
INDEX
`index_grant_type_id`
(
grant_type_id
),
INDEX
`index_status_id`
(
status_id
),
CONSTRAINT
FK_civicrm_grant_contact_id
FOREIGN
KEY
(
`contact_id`
)
REFERENCES
`civicrm_contact`
(
`id`
)
ON
DELETE
CASCADE
,
CONSTRAINT
FK_civicrm_grant_financial_type_id
FOREIGN
KEY
(
`financial_type_id`
)
REFERENCES
`civicrm_financial_type`
(
`id`
)
ON
DELETE
SET
NULL
)
ENGINE
=
InnoDB
;
This diff is collapsed.
Click to expand it.
civicrm/ext/civigrant/sql/auto_uninstall.sql
0 → 100644
+
20
−
0
View file @
c400837c
-- +--------------------------------------------------------------------+
-- | Copyright CiviCRM LLC. All rights reserved. |
-- | |
-- | This work is published under the GNU AGPLv3 license with some |
-- | permitted exceptions and without any warranty. For full license |
-- | and copyright information, see https://civicrm.org/licensing |
-- +--------------------------------------------------------------------+
--
-- Generated from drop.tpl
-- DO NOT EDIT. Generated by CRM_Core_CodeGen
---- /*******************************************************
-- *
-- * Clean up the existing tables-- *
-- *******************************************************/
SET
FOREIGN_KEY_CHECKS
=
0
;
DROP
TABLE
IF
EXISTS
`civicrm_grant`
;
SET
FOREIGN_KEY_CHECKS
=
1
;
\ No newline at end of file
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