Skip to content

Commit

Permalink
GEOMESA-3423 - restore logged tables
Browse files Browse the repository at this point in the history
  • Loading branch information
autodidacticon committed Dec 10, 2024
1 parent c0ffb7d commit 666a717
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PartitionTablespacesTable extends Sql {
val table = TableIdentifier(info.schema.raw, Name.raw)
val cName = TableName(Name.raw + "_pkey")
val create =
s"""CREATE ${info.walLogSQL} TABLE IF NOT EXISTS ${table.quoted} (
s"""CREATE TABLE IF NOT EXISTS ${table.quoted} (
| type_name text not null,
| table_type text not null,
| table_space text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PrimaryKeyTable extends Sql {
// we need to define the primary key separately since the main view can't have any primary key columns
val table = s"${info.schema.quoted}.${Name.quoted}"
val create =
s"""CREATE ${info.walLogSQL} TABLE IF NOT EXISTS $table (
s"""CREATE TABLE IF NOT EXISTS $table (
| table_schema character varying,
| table_name character varying,
| pk_column_idx integer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SequenceTable extends Sql {
override def create(info: TypeInfo)(implicit ex: ExecutionContext): Unit = {
val table = TableIdentifier(info.schema.raw, Name.raw)
val create =
s"""CREATE ${info.walLogSQL} TABLE IF NOT EXISTS ${table.qualified} (
s"""CREATE TABLE IF NOT EXISTS ${table.qualified} (
| type_name text PRIMARY KEY,
| value smallint NOT NULL CHECK (value >= 0 AND value <= 999)
|);""".stripMargin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UserDataTable extends Sql {
val table = TableIdentifier(info.schema.raw, Name.raw)
val cName = TableName(Name.raw + "_pkey")
val create =
s"""CREATE ${info.walLogSQL} TABLE IF NOT EXISTS ${table.quoted} (
s"""CREATE TABLE IF NOT EXISTS ${table.quoted} (
| type_name text not null,
| key text not null,
| value text not null
Expand Down

0 comments on commit 666a717

Please sign in to comment.