Skip to content

Commit f8c62ed

Browse files
committed
Added PostgreSQL files.
1 parent 064ecf0 commit f8c62ed

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

src/administrator/components/com_ccm/ccm.xml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,15 @@
1111
<install>
1212
<sql>
1313
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
14+
<file driver="postgresql" charset="utf8">sql/install.postgresql.utf8.sql</file>
1415
</sql>
1516
</install>
1617
<uninstall>
1718
<sql>
1819
<file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql</file>
20+
<file driver="postgresql" charset="utf8">sql/uninstall.postgresql.utf8.sql</file>
1921
</sql>
2022
</uninstall>
21-
<update>
22-
<sql>
23-
<file driver="mysql" charset="utf8">sql/updates/mysql/1.0.1.sql</file>
24-
</sql>
25-
</update>
26-
<api>
27-
<files folder="api/components/com_ccm">
28-
<folder>src</folder>
29-
</files>
30-
</api>
3123
<administration>
3224
<files>
3325
<folder>services</folder>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--
2+
-- Table structure for table #__ccm_cms
3+
--
4+
5+
CREATE TABLE IF NOT EXISTS "#__ccm_cms" (
6+
"id" serial NOT NULL,
7+
"name" varchar(100) DEFAULT '' NOT NULL,
8+
"url" varchar(255) DEFAULT '' NOT NULL,
9+
"credentials" varchar(255) DEFAULT NULL,
10+
"content_keys_types" json DEFAULT NULL,
11+
"ccm_mapping" json DEFAULT NULL,
12+
"created" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
13+
"modified" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
14+
PRIMARY KEY ("id")
15+
);
16+
17+
-- Inserting initial data for table #__ccm_cms
18+
INSERT INTO "#__ccm_cms" ("id", "name") VALUES
19+
(1, 'Joomla'),
20+
(2, 'WordPress');
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DROP TABLE IF EXISTS "#__ccm_cms";
2+

0 commit comments

Comments
 (0)