Skip to content
Snippets Groups Projects
Commit c72f46b3 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

rename 'token' column in 'token' table to 'secret'

parent 302e8a34
No related branches found
No related tags found
No related merge requests found
CREATE TABLE tokens (
id bigint(20) NOT NULL AUTO_INCREMENT,
token varchar(50) NOT NULL,
secret varchar(50) NOT NULL,
email_address varchar(200) NOT NULL,
entityid varchar(200) NOT NULL,
creation_date datetime DEFAULT NULL,
......
......@@ -12,7 +12,7 @@ __PACKAGE__->meta->setup(
columns => [
id => { type => 'bigserial', not_null => 1 },
token => { type => 'varchar', length => 50, not_null => 1, alias => 'secret' },
secret => { type => 'varchar', length => 50, not_null => 1 },
email_address => { type => 'varchar', length => 200, not_null => 1 },
entityid => { type => 'varchar', length => 200, not_null => 1 },
creation_date => { type => 'datetime' },
......@@ -22,7 +22,7 @@ __PACKAGE__->meta->setup(
primary_key_columns => [ 'id' ],
unique_keys => [
[ 'token' ],
[ 'secret' ],
[ 'email_address', 'entityid' ],
],
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment