-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permissions ALTER DB manquantes #50
Labels
bug
Something isn't working
Comments
Bon, en attendant qu'un admin daigne attribuer les droits au compte DB, on va demander à un admin d'exécuter les requêtes qui permettent d'exécuter les migrations qu'il faut jusqu'à présent : alter table chapters modify content text null;
create table subdivision_types
(
id bigint unsigned auto_increment
primary key,
pays_id int null,
type_name varchar(255) not null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
constraint subdivision_types_pays_id_foreign
foreign key (pays_id) references mondegc.pays (ch_pay_id)
on update cascade on delete set null
);
create table subdivisions
(
id bigint unsigned auto_increment
primary key,
subdivision_type_id bigint unsigned null,
name varchar(191) not null,
summary longtext null,
content longtext null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
constraint subdivisions_subdivision_type_id_foreign
foreign key (subdivision_type_id) references mondegc.subdivision_types (id)
on update cascade on delete set null
);
alter table pays add use_subdivisions bool default false not null after ch_pay_label;
alter table villes add subdivision_id bigint unsigned default null null after ch_vil_label;
UPDATE `histoire` SET ch_his_date_fait = "0001-01-01 00:00:00" WHERE ch_his_date_fait IS NULL OR ch_his_date_fait = "0000-00-00 00:00:00";
UPDATE `histoire` SET ch_his_date_fait2 = NULL WHERE ch_his_date_fait2 = "0000-00-00 00:00:00";
alter table histoire modify ch_his_paysID int not null;
alter table patrimoine modify ch_pat_paysID int not null;
INSERT INTO migrations (migration, batch) VALUES ('2024_01_27_121925_roleplay_nullable_optional_fields', 5);
INSERT INTO migrations (migration, batch) VALUES ('2024_01_28_124141_create_subdivision_table', 6);
INSERT INTO migrations (migration, batch) VALUES ('2024_01_28_130451_use_subdivisions', 6);
INSERT INTO migrations (migration, batch) VALUES ('2024_02_15_220928_fix_tinyint_to_int', 7); (ce serait cool d'avoir les droits parce que je ne vais pas faire des requêtes à la mano à chaque fois...) |
Roxayl
changed the title
Permissions ALTER TABLE manquantes
Permissions ALTER COLUMN manquantes
Feb 16, 2024
Roxayl
changed the title
Permissions ALTER COLUMN manquantes
Permissions ALTER DB manquantes
Feb 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Certaines migrations ne s'exécutent pas car certaines permissions d'accès à la base de données sont manquantes.
e.g. échec de la migration lors de l'action suivante : https://github.com/Roxayl/mondegc/actions/runs/7865348975/job/21458190740#step:6:70
The text was updated successfully, but these errors were encountered: