Skip to content

Commit ae7fb45

Browse files
committed
updates
1 parent 6d5c103 commit ae7fb45

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

packages/core/__tests__/__snapshots__/class.launchql.write.plans.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module_pathname = '$libdir/pg-verify'
3030
requires = 'some-native-module,pg-utilities'
3131
relocatable = false
3232
superuser = false
33-
",
33+
",
3434
"deps": {
3535
"modules": [
3636
"pg-utilities",

packages/core/__tests__/__snapshots__/mods.install.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ module_pathname = '$libdir/totp'
3838
requires = 'pgcrypto,plpgsql,uuid-ossp,webql-base32'
3939
relocatable = false
4040
superuser = false
41-
"
41+
"
4242
`;

packages/project-files/src/extension/writer.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,24 @@ export function generateControlFileContent(options: {
4848
let content = `# ${name} extension
4949
comment = '${comment}'
5050
default_version = '${default_version}'
51-
relocatable = ${relocatable}
52-
superuser = ${superuser}
5351
`;
5452

55-
if (schema) {
56-
content += `schema = ${schema}\n`;
57-
}
58-
5953
if (module_pathname) {
6054
content += `module_pathname = '${module_pathname}'\n`;
6155
} else {
6256
content += `module_pathname = '$libdir/${name}'\n`;
6357
}
6458

6559
if (requires.length > 0) {
66-
content += `requires = '${requires.join(',')}'`;
60+
content += `requires = '${requires.join(',')}'\n`;
61+
}
62+
63+
content += `relocatable = ${relocatable}
64+
superuser = ${superuser}
65+
`;
66+
67+
if (schema) {
68+
content += `schema = ${schema}\n`;
6769
}
6870

6971
return content;

0 commit comments

Comments
 (0)