Error in query: CREATE TABLE del (
num int(11) NOT NULL AUTO_INCREMENT,
id varchar(11) DEFAULT NULL,
user_id varchar(15) DEFAULT NULL,
message_id varchar(20) DEFAULT NULL,
timeDel int(20) DEFAULT 0,
PRIMARY KEY (num),
INDEX (user_id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Table 'del' already exists
Error in query:
CREATE TABLE file (
num int(11) NOT NULL AUTO_INCREMENT,
id varchar(20) DEFAULT NULL,
type varchar(50) DEFAULT 'none',
file_id varchar(255) DEFAULT NULL,
caption TEXT DEFAULT NULL,
password varchar(255) DEFAULT NULL,
user_id varchar(20) DEFAULT NULL,
file_size bigint(20) DEFAULT 0,
downloads int(11) DEFAULT 0,
likes INT DEFAULT 0, -- تعداد لایکها
dislikes INT DEFAULT 0, -- تعداد دیسلایکها
date DATETIME DEFAULT CURRENT_TIMESTAMP,
time DATETIME DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (num),
INDEX (user_id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Table 'file' already exists
Error in query:
CREATE TABLE send (
step varchar(50) NOT NULL,
text TEXT NOT NULL,
from varchar(20) NOT NULL DEFAULT '0',
user int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from varchar(20) NOT NULL DEFAULT '0',
user int(11) NOT NULL DEFAULT 0
) EN...' at line 4
Error in query:
CREATE TABLE settings (
id int(11) NOT NULL AUTO_INCREMENT,
type varchar(50) NOT NULL,
type_id varchar(50) NOT NULL,
columnOne TEXT DEFAULT NULL,
columnTwo TEXT DEFAULT NULL,
PRIMARY KEY (id),
INDEX (type, type_id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Table 'settings' already exists
Error in query:
CREATE TABLE imdb_buttons (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
link VARCHAR(255) NOT NULL
);
Table 'imdb_buttons' already exists
Error in query:
CREATE TABLE user_states (
user_id BIGINT PRIMARY KEY,
state VARCHAR(255),
data TEXT
);
Table 'user_states' already exists
Error in query:
CREATE TABLE user (
id int(11) NOT NULL AUTO_INCREMENT,
from_id varchar(20) NOT NULL,
step varchar(50) DEFAULT 'none',
downloads int(20) DEFAULT 0,
getFile varchar(255) DEFAULT 'none',
status varchar(40) DEFAULT 'active',
update_at int(20) DEFAULT NULL,
create_at int(20) DEFAULT NULL,
PRIMARY KEY (id),
UNIQUE KEY from_id (from_id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Table 'user' already exists
Error in query: ALTER TABLE files ADD COLUMN likes INT DEFAULT 0;
Table 'mruploa1_shahin.files' doesn't exist
Error in query: ALTER TABLE files ADD COLUMN dislikes INT DEFAULT 0;
Table 'mruploa1_shahin.files' doesn't exist