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
c078f9b4
Verified
Commit
c078f9b4
authored
1 year ago
by
Kevin Cristiano
Browse files
Options
Downloads
Patches
Plain Diff
add standalone sql directory
parent
a11b37fc
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/standaloneusers/sql/auto_install.sql
+71
-0
71 additions, 0 deletions
civicrm/ext/standaloneusers/sql/auto_install.sql
civicrm/ext/standaloneusers/sql/auto_uninstall.sql
+21
-0
21 additions, 0 deletions
civicrm/ext/standaloneusers/sql/auto_uninstall.sql
with
92 additions
and
0 deletions
civicrm/ext/standaloneusers/sql/auto_install.sql
0 → 100644
+
71
−
0
View file @
c078f9b4
-- +--------------------------------------------------------------------+
-- | 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_user`
;
DROP
TABLE
IF
EXISTS
`civicrm_role`
;
SET
FOREIGN_KEY_CHECKS
=
1
;
-- /*******************************************************
-- *
-- * Create new tables
-- *
-- *******************************************************/
-- /*******************************************************
-- *
-- * civicrm_role
-- *
-- * A Role holds a set of permissions. Roles may be granted to Users.
-- *
-- *******************************************************/
CREATE
TABLE
`civicrm_role`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'Unique Role ID'
,
`name`
varchar
(
60
)
NOT
NULL
COMMENT
'Machine name for this role'
,
`label`
varchar
(
128
)
NOT
NULL
COMMENT
'Human friendly name for this role'
,
`permissions`
text
NOT
NULL
COMMENT
'List of permissions granted by this role'
,
`is_active`
tinyint
DEFAULT
1
COMMENT
'Only active roles grant permissions'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
;
-- /*******************************************************
-- *
-- * civicrm_user
-- *
-- * A standalone user account
-- *
-- *******************************************************/
CREATE
TABLE
`civicrm_user`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'Unique User ID'
,
`contact_id`
int
unsigned
COMMENT
'FK to Contact - possibly redundant'
,
`username`
varchar
(
60
)
NOT
NULL
,
`password`
varchar
(
128
)
NOT
NULL
COMMENT
'Hashed password'
,
`email`
varchar
(
255
)
NOT
NULL
COMMENT
'Email (e.g. for password resets)'
,
`roles`
varchar
(
128
)
COMMENT
'FK to Role'
,
`when_created`
timestamp
DEFAULT
CURRENT_TIMESTAMP
,
`when_last_accessed`
timestamp
NULL
,
`when_updated`
timestamp
NULL
,
`is_active`
tinyint
NOT
NULL
DEFAULT
1
,
`timezone`
varchar
(
32
)
NULL
COMMENT
'User
\'
s timezone'
,
`language`
int
unsigned
COMMENT
'The language for the user.'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
INDEX
`UI_username`
(
username
),
CONSTRAINT
FK_civicrm_user_contact_id
FOREIGN
KEY
(
`contact_id`
)
REFERENCES
`civicrm_contact`
(
`id`
)
ON
DELETE
CASCADE
)
ENGINE
=
InnoDB
;
This diff is collapsed.
Click to expand it.
civicrm/ext/standaloneusers/sql/auto_uninstall.sql
0 → 100644
+
21
−
0
View file @
c078f9b4
-- +--------------------------------------------------------------------+
-- | 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_user`
;
DROP
TABLE
IF
EXISTS
`civicrm_role`
;
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