feat: implement license platform business flows and delivery tooling
Add admin and customer interfaces, orders, signed activation and leases, protected package delivery, keyring verification, migrations, security controls, tests and deployment documentation. Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
4
backend/migrations/000010_admin_usernames.up.sql
Normal file
4
backend/migrations/000010_admin_usernames.up.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE admins ADD COLUMN username VARCHAR(32) NULL AFTER id;
|
||||
UPDATE admins SET username=CONCAT('admin-', id) WHERE username IS NULL;
|
||||
ALTER TABLE admins MODIFY COLUMN username VARCHAR(32) NOT NULL;
|
||||
ALTER TABLE admins ADD UNIQUE KEY uq_admins_username (username);
|
||||
Reference in New Issue
Block a user