Skip to content

Commit

Permalink
DBZ-4999 fixing Informix tutorial example
Browse files Browse the repository at this point in the history
  • Loading branch information
nrkljo authored and jpechane committed Nov 2, 2023
1 parent 2ad53f6 commit 379953d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions tutorial/debezium-ifx-init/ifxserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ LABEL maintainer="Debezium Community"
ADD --chown=informix:informix --chmod=775 informix_post_init.sh /opt/ibm/config
ADD --chown=informix:informix --chmod=775 inventory.sql /opt/ibm/informix/etc

ENV DBDATE Y4MD-
ENV TYPE oltp
ENV SIZE medium
ENV LICENSE accept
Expand Down
12 changes: 5 additions & 7 deletions tutorial/debezium-ifx-init/ifxserver/inventory.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
DATABASE sysuser;

-- Create and populate our products using a single insert with many rows
CREATE TABLE informix.products (
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY
(START WITH 101, INCREMENT BY 1) PRIMARY KEY,
id SERIAL(101) NOT NULL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
description VARCHAR(512),
description LVARCHAR(512),
weight FLOAT
);
INSERT INTO informix.products(name,description,weight)
Expand Down Expand Up @@ -42,8 +42,7 @@ INSERT INTO informix.products_on_hand VALUES (108,2);
INSERT INTO informix.products_on_hand VALUES (109,5);

CREATE TABLE informix.customers (
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY
(START WITH 1001, INCREMENT BY 1) PRIMARY KEY,
id SERIAL(1001) NOT NULL PRIMARY KEY,
first_name VARCHAR(255) NOT NULL,
last_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE
Expand All @@ -58,8 +57,7 @@ INSERT INTO informix.customers(first_name,last_name,email)
VALUES ('Anne','Kretchmar','[email protected]');

CREATE TABLE informix.orders (
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY
(START WITH 10001, INCREMENT BY 1) PRIMARY KEY,
id SERIAL(10001) NOT NULL PRIMARY KEY,
order_date DATE NOT NULL,
purchaser INTEGER NOT NULL,
quantity INTEGER NOT NULL,
Expand Down
3 changes: 1 addition & 2 deletions tutorial/register-ifx.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"database.port" : "9088",
"database.user" : "informix",
"database.password" : "in4mix",
"database.dbname" : "informix",
"database.cdcschema": "informix",
"database.dbname" : "sysuser",
"schema.history.internal.kafka.bootstrap.servers" : "kafka:9092",
"schema.history.internal.kafka.topic": "schema-changes.inventory"
}
Expand Down

0 comments on commit 379953d

Please sign in to comment.