blob: 8badd66d905bf2bcd9b6bac78affe97134b8123c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
create database IF NOT EXISTS asdfus;
grant all privileges on asdfus.* to 'asdfus'@'localhost' identified by 'gTYgT&M6q';
flush privileges;
use asdfus;
create table IF NOT EXISTS shaders (id int(11) AUTO_INCREMENT NOT NULL, PRIMARY KEY(id), script blob, image_url blob, thumbnail_url varchar(50), username varchar(30), time bigint(20) NOT NULL, shader_id int(11));
create table IF NOT EXISTS shader_ids (id int(11) AUTO_INCREMENT NOT NULL, PRIMARY KEY(id), username varchar(40));
alter table shaders modify username varchar(30);
IF EXISTS (
SELECT *
FROM sys.columns
WHERE name = 'shaders'
)
begin
alter table shaders add name varchar(40);
end;
|