Add docs link, misc format tweaks
This commit is contained in:
@@ -27,7 +27,7 @@ class Definition
|
||||
{
|
||||
$dataType = match (Configuration::mode('make create table statement')) {
|
||||
Mode::PgSQL => 'JSONB',
|
||||
Mode::SQLite => 'TEXT'
|
||||
Mode::SQLite => 'TEXT',
|
||||
};
|
||||
return "CREATE TABLE IF NOT EXISTS $name (data $dataType NOT NULL)";
|
||||
}
|
||||
@@ -91,7 +91,7 @@ class Definition
|
||||
[, $tbl] = self::splitSchemaAndTable($tableName);
|
||||
$extraOps = match ($indexType) {
|
||||
DocumentIndex::Full => '',
|
||||
DocumentIndex::Optimized => ' jsonb_path_ops'
|
||||
DocumentIndex::Optimized => ' jsonb_path_ops',
|
||||
};
|
||||
return "CREATE INDEX IF NOT EXISTS idx_{$tbl}_document ON $tableName USING GIN (data$extraOps)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user