mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
feat(PostgreSQL): tables addition
This commit is contained in:
@ -997,13 +997,10 @@ export class PostgreSQLClient extends AntaresCore {
|
||||
*/
|
||||
async createTable (params) {
|
||||
const {
|
||||
name,
|
||||
collation,
|
||||
comment,
|
||||
engine
|
||||
name
|
||||
} = params;
|
||||
|
||||
const sql = `CREATE TABLE \`${name}\` (\`${name}_ID\` INT NULL) COMMENT='${comment}', COLLATE='${collation}', ENGINE=${engine}`;
|
||||
const sql = `CREATE TABLE ${name} (${name}_id INTEGER NULL)`;
|
||||
|
||||
return await this.raw(sql);
|
||||
}
|
||||
|
Reference in New Issue
Block a user