mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Clean up obsolete FIXMEs
This commit is contained in:
parent
7e5d8494c4
commit
e65069885b
6 changed files with 6 additions and 6 deletions
|
@ -15,7 +15,7 @@ class Statement extends \JKingWeb\Arsse\Db\AbstractStatement {
|
||||||
self::T_DATETIME => "s",
|
self::T_DATETIME => "s",
|
||||||
self::T_BINARY => "b",
|
self::T_BINARY => "b",
|
||||||
self::T_STRING => "s",
|
self::T_STRING => "s",
|
||||||
self::T_BOOLEAN => "i",
|
self::T_BOOLEAN => "i", // NOTE: Integers are used rather than booleans so that they may be manipulated arithmetically
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
|
@ -15,7 +15,7 @@ abstract class PDOStatement extends AbstractStatement {
|
||||||
self::T_DATETIME => \PDO::PARAM_STR,
|
self::T_DATETIME => \PDO::PARAM_STR,
|
||||||
self::T_BINARY => \PDO::PARAM_LOB,
|
self::T_BINARY => \PDO::PARAM_LOB,
|
||||||
self::T_STRING => \PDO::PARAM_STR,
|
self::T_STRING => \PDO::PARAM_STR,
|
||||||
self::T_BOOLEAN => \PDO::PARAM_INT, // FIXME: using \PDO::PARAM_BOOL leads to incompatibilities with versions of SQLite bundled prior to PHP 7.3
|
self::T_BOOLEAN => \PDO::PARAM_INT, // NOTE: Integers are used rather than booleans so that they may be manipulated arithmetically
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $st;
|
protected $st;
|
||||||
|
|
|
@ -15,7 +15,7 @@ class Statement extends \JKingWeb\Arsse\Db\AbstractStatement {
|
||||||
self::T_DATETIME => "timestamp(0) without time zone",
|
self::T_DATETIME => "timestamp(0) without time zone",
|
||||||
self::T_BINARY => "bytea",
|
self::T_BINARY => "bytea",
|
||||||
self::T_STRING => "text",
|
self::T_STRING => "text",
|
||||||
self::T_BOOLEAN => "smallint", // FIXME: using boolean leads to incompatibilities with versions of SQLite bundled prior to PHP 7.3
|
self::T_BOOLEAN => "smallint", // NOTE: Integers are used rather than booleans so that they may be manipulated arithmetically
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
|
@ -18,7 +18,7 @@ class Statement extends \JKingWeb\Arsse\Db\AbstractStatement {
|
||||||
self::T_DATETIME => \SQLITE3_TEXT,
|
self::T_DATETIME => \SQLITE3_TEXT,
|
||||||
self::T_BINARY => \SQLITE3_BLOB,
|
self::T_BINARY => \SQLITE3_BLOB,
|
||||||
self::T_STRING => \SQLITE3_TEXT,
|
self::T_STRING => \SQLITE3_TEXT,
|
||||||
self::T_BOOLEAN => \SQLITE3_INTEGER,
|
self::T_BOOLEAN => \SQLITE3_INTEGER, // NOTE: Integers are used rather than booleans so that they may be manipulated arithmetically
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
|
@ -16,7 +16,7 @@ create table arsse_users(
|
||||||
avatar_type text, -- internal avatar image's MIME content type
|
avatar_type text, -- internal avatar image's MIME content type
|
||||||
avatar_data blob, -- internal avatar image's binary data
|
avatar_data blob, -- internal avatar image's binary data
|
||||||
admin boolean default 0, -- whether the user is a member of the special "admin" group
|
admin boolean default 0, -- whether the user is a member of the special "admin" group
|
||||||
rights integer not null default 0 -- temporary admin-rights marker FIXME: remove reliance on this
|
rights integer not null default 0 -- temporary admin-rights marker
|
||||||
);
|
);
|
||||||
|
|
||||||
create table arsse_users_meta(
|
create table arsse_users_meta(
|
||||||
|
|
|
@ -13,7 +13,7 @@ create table arsse_users_new(
|
||||||
avatar_type text, -- internal avatar image's MIME content type
|
avatar_type text, -- internal avatar image's MIME content type
|
||||||
avatar_data blob, -- internal avatar image's binary data
|
avatar_data blob, -- internal avatar image's binary data
|
||||||
admin boolean default 0, -- whether the user is a member of the special "admin" group
|
admin boolean default 0, -- whether the user is a member of the special "admin" group
|
||||||
rights integer not null default 0 -- temporary admin-rights marker FIXME: remove reliance on this
|
rights integer not null default 0 -- temporary admin-rights marker
|
||||||
);
|
);
|
||||||
insert into arsse_users_new(id,password,name,avatar_type,avatar_data,admin,rights) select id,password,name,avatar_type,avatar_data,admin,rights from arsse_users;
|
insert into arsse_users_new(id,password,name,avatar_type,avatar_data,admin,rights) select id,password,name,avatar_type,avatar_data,admin,rights from arsse_users;
|
||||||
drop table arsse_users;
|
drop table arsse_users;
|
||||||
|
|
Loading…
Reference in a new issue