mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Clean the awful code.
This commit is contained in:
parent
98ffbec764
commit
569cd087e7
15 changed files with 193 additions and 167 deletions
|
@ -25,7 +25,7 @@ create table if not exists newsProviders (
|
|||
logoUrl text not null,
|
||||
lean text not null
|
||||
)
|
||||
`
|
||||
`;
|
||||
|
||||
const createAdminPosts = await sql`
|
||||
create table if not exists adminPosts (
|
||||
|
@ -35,7 +35,7 @@ create table if not exists adminPosts (
|
|||
created_at timestampz default current_timestamp,
|
||||
byUser text not null
|
||||
)
|
||||
`
|
||||
`;
|
||||
const adminUsers = await sql`
|
||||
create table if not exists adminUsers (
|
||||
uuid text primary key,
|
||||
|
@ -44,7 +44,6 @@ create table if not exists adminUsers (
|
|||
created_at timestampz default current_timestamp,
|
||||
lastlogged_at timestampz default current_timestamp,
|
||||
)
|
||||
`
|
||||
|
||||
`;
|
||||
|
||||
console.log("Creation Complete");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue