Remove column default_project_id for users because it's useless now

This commit is contained in:
Frederic Guillot
2015-06-27 15:14:04 -04:00
parent e6e286be83
commit 6c772de184
14 changed files with 16 additions and 104 deletions

View File

@@ -6,7 +6,12 @@ use PDO;
use Core\Security;
use Model\Link;
const VERSION = 76;
const VERSION = 77;
function version_77($pdo)
{
$pdo->exec('ALTER TABLE users DROP COLUMN `default_project_id`');
}
function version_76($pdo)
{

View File

@@ -6,7 +6,12 @@ use PDO;
use Core\Security;
use Model\Link;
const VERSION = 56;
const VERSION = 57;
function version_57($pdo)
{
$pdo->exec('ALTER TABLE users DROP COLUMN "default_project_id"');
}
function version_56($pdo)
{

View File

@@ -903,8 +903,7 @@ function version_1($pdo)
id INTEGER PRIMARY KEY,
username TEXT NOT NULL,
password TEXT,
is_admin INTEGER DEFAULT 0,
default_project_id INTEGER DEFAULT 0
is_admin INTEGER DEFAULT 0
)
");